@bizdoc/core 1.17.10 → 1.17.12
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/bizdoc-schema.json +1 -0
- package/esm2020/lib/admin/architecture/declarations.mjs +1 -1
- package/esm2020/lib/admin/architecture/designer-element.component.mjs +2 -2
- package/esm2020/lib/admin/architecture/designer.base.mjs +29 -1
- package/esm2020/lib/admin/architecture/designer.component.mjs +5 -4
- package/esm2020/lib/admin/architecture/elements/action.component.mjs +1 -1
- package/esm2020/lib/admin/architecture/elements/attribute.component.mjs +6 -5
- package/esm2020/lib/admin/architecture/elements/configuration-datasource.component.mjs +1 -1
- package/esm2020/lib/admin/architecture/elements/control.component.mjs +3 -2
- package/esm2020/lib/admin/architecture/elements/cube.component.mjs +24 -20
- package/esm2020/lib/admin/architecture/elements/folder.component.mjs +4 -3
- package/esm2020/lib/admin/architecture/elements/form-invite.dialog.mjs +1 -1
- package/esm2020/lib/admin/architecture/elements/form.component.mjs +4 -4
- package/esm2020/lib/admin/architecture/elements/report.component.mjs +4 -3
- package/esm2020/lib/admin/architecture/elements/role.component.mjs +6 -5
- package/esm2020/lib/admin/architecture/elements/state.component.mjs +1 -1
- package/esm2020/lib/admin/architecture/elements/type.component.mjs +6 -6
- package/esm2020/lib/admin/architecture/elements/widget.component.mjs +4 -3
- package/esm2020/lib/admin/core/localized-string.component.mjs +12 -45
- package/esm2020/lib/admin/form/designer/box-designer.component.mjs +11 -9
- package/esm2020/lib/admin/form/designer/properties.component.mjs +2 -2
- package/esm2020/lib/admin/form/designer/section.component.mjs +1 -1
- package/esm2020/lib/admin/form/workflow/node.component.mjs +2 -2
- package/esm2020/lib/admin/positions/positions.component.mjs +27 -26
- package/esm2020/lib/admin/system.service.mjs +30 -2
- package/esm2020/lib/browse/browse-items.component.mjs +12 -11
- package/esm2020/lib/compose/form.component.mjs +4 -4
- package/esm2020/lib/compose/version-compare/version-compare.directive.mjs +8 -8
- package/esm2020/lib/core/checkbox.mjs +5 -5
- package/esm2020/lib/core/component-factory-resolver.mjs +1 -1
- package/esm2020/lib/core/fields/address.designer.mjs +1 -1
- package/esm2020/lib/core/fields/autocomplete.field.mjs +27 -12
- package/esm2020/lib/core/fields/checkbox.designer.mjs +1 -1
- package/esm2020/lib/core/fields/checkbox.field.mjs +3 -3
- package/esm2020/lib/core/fields/checklist.designer.mjs +27 -12
- package/esm2020/lib/core/fields/date-range.designer.mjs +1 -1
- package/esm2020/lib/core/fields/date.designer.mjs +1 -1
- package/esm2020/lib/core/fields/expression.field.mjs +31 -5
- package/esm2020/lib/core/fields/file.designer.mjs +1 -1
- package/esm2020/lib/core/fields/html.designer.mjs +1 -1
- package/esm2020/lib/core/fields/input.designer.mjs +1 -1
- package/esm2020/lib/core/fields/localized-string.field.mjs +32 -5
- package/esm2020/lib/core/fields/numeric.designer.mjs +1 -1
- package/esm2020/lib/core/fields/options.base.mjs +7 -7
- package/esm2020/lib/core/fields/options.component.mjs +3 -3
- package/esm2020/lib/core/fields/radio-button.designer.mjs +9 -9
- package/esm2020/lib/core/fields/select.designer.mjs +26 -12
- package/esm2020/lib/core/fields/signature.designer.mjs +1 -1
- package/esm2020/lib/core/fields/textarea.designer.mjs +1 -1
- package/esm2020/lib/core/fields/time.designer.mjs +40 -0
- package/esm2020/lib/core/fields/time.field.mjs +40 -0
- package/esm2020/lib/core/fields/timespan.field.mjs +19 -2
- package/esm2020/lib/core/fields/yesno.designer.mjs +29 -15
- package/esm2020/lib/core/inputs/auto-complete.input.mjs +2 -2
- package/esm2020/lib/core/inputs/select.input.mjs +2 -2
- package/esm2020/lib/core/layout.component.mjs +9 -71
- package/esm2020/lib/core/models.mjs +1 -19
- package/esm2020/lib/core/slots/router.service.mjs +2 -2
- package/esm2020/lib/core/slots/slots.component.mjs +7 -4
- package/esm2020/lib/cube/chart/chart.component.mjs +2 -2
- package/esm2020/lib/cube/explore/explore-items.component.mjs +9 -9
- package/esm2020/lib/designer.module.mjs +18 -14
- package/esm2020/lib/reports/report-viewer.component.mjs +2 -2
- package/esm2020/lib/reports/report.mobile.component.mjs +5 -5
- package/esm2020/lib/reports/table/table-view.component.mjs +2 -2
- package/esm2020/lib/shared.module.mjs +6 -4
- package/esm2020/lib/system.module.mjs +7 -3
- package/esm2020/lib/views/timeline/timeline.component.exp.mjs +5 -2
- package/esm2020/public-api.mjs +5 -1
- package/fesm2015/bizdoc-core.mjs +7208 -7053
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +11266 -11115
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/admin/architecture/declarations.d.ts +5 -0
- package/lib/admin/architecture/designer.base.d.ts +4 -2
- package/lib/admin/architecture/elements/attribute.component.d.ts +2 -2
- package/lib/admin/architecture/elements/control.component.d.ts +2 -2
- package/lib/admin/architecture/elements/cube.component.d.ts +5 -5
- package/lib/admin/architecture/elements/folder.component.d.ts +1 -0
- package/lib/admin/architecture/elements/form.component.d.ts +2 -2
- package/lib/admin/architecture/elements/role.component.d.ts +2 -2
- package/lib/admin/architecture/elements/type.component.d.ts +1 -1
- package/lib/admin/core/localized-string.component.d.ts +4 -17
- package/lib/admin/form/designer/box-designer.component.d.ts +1 -2
- package/lib/admin/positions/positions.component.d.ts +8 -5
- package/lib/admin/system.service.d.ts +12 -1
- package/lib/core/checkbox.d.ts +2 -2
- package/lib/core/component-factory-resolver.d.ts +1 -1
- package/lib/core/fields/autocomplete.field.d.ts +4 -6
- package/lib/core/fields/checklist.designer.d.ts +2 -2
- package/lib/core/fields/expression.field.d.ts +12 -2
- package/lib/core/fields/localized-string.field.d.ts +9 -2
- package/lib/core/fields/options.base.d.ts +6 -5
- package/lib/core/fields/radio-button.designer.d.ts +2 -2
- package/lib/core/fields/select.designer.d.ts +2 -2
- package/lib/core/fields/time.designer.d.ts +25 -0
- package/lib/core/fields/time.field.d.ts +22 -0
- package/lib/core/fields/timespan.field.d.ts +10 -2
- package/lib/core/fields/yesno.designer.d.ts +4 -6
- package/lib/core/layout.component.d.ts +5 -2
- package/lib/core/models.d.ts +4 -28
- package/lib/core/slots/router.service.d.ts +1 -1
- package/lib/designer.module.d.ts +24 -20
- package/lib/shared.module.d.ts +137 -136
- package/lib/views/timeline/timeline.component.exp.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
@@ -205,6 +205,7 @@ export interface DesignerInfo {
|
|
205
205
|
tReports: TemplateInfo[];
|
206
206
|
forms: ElementInfo[];
|
207
207
|
cubes: ElementInfo[];
|
208
|
+
controls: ElementInfo[];
|
208
209
|
utilities: ElementInfo[];
|
209
210
|
folders: ElementInfo[];
|
210
211
|
nodes: ElementInfo[];
|
@@ -228,3 +229,7 @@ export interface ElementInfo<T = any> {
|
|
228
229
|
options?: T;
|
229
230
|
}
|
230
231
|
export declare function localizeString(value: LocalizedString): string | null;
|
232
|
+
export interface ElementFamily<T = any> {
|
233
|
+
title: string;
|
234
|
+
elements: ElementInfo[];
|
235
|
+
}
|
@@ -2,7 +2,7 @@ import { ElementRef, OnInit, TemplateRef } 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 { DesignerElementComponent, DesignMode, ElementModel, DesignerRef } from "./declarations";
|
5
|
+
import { DesignerElementComponent, DesignMode, ElementModel, DesignerRef, ElementFamily } from "./declarations";
|
6
6
|
import { DesignerItemComponent } from "./designer-element.component";
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
/** */
|
@@ -32,9 +32,11 @@ export declare abstract class DesignerElementComponentBase<T = any> implements D
|
|
32
32
|
export declare abstract class DesignerTypeElementComponent<T = any> extends DesignerElementComponentBase {
|
33
33
|
protected _fb: FormBuilder;
|
34
34
|
protected _ref: DesignerRef<T>;
|
35
|
-
ngOnInit(): void;
|
36
35
|
designer: DesignerItemComponent;
|
37
36
|
constructor(_fb: FormBuilder, element: ElementRef<any>, _ref: DesignerRef<T>);
|
37
|
+
ngOnInit(): void;
|
38
|
+
protected get _typegroups(): ElementFamily<any>[];
|
39
|
+
datatypeOf(name: string): import("@bizdoc/core").LocalizedString;
|
38
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<DesignerTypeElementComponent<any>, never>;
|
39
41
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerTypeElementComponent<any>, never, never, {}, {}, never, never, false>;
|
40
42
|
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ElementFamily } from "../declarations";
|
2
2
|
import { DesignerTypeElementComponent } from "../designer.base";
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class AttributeDesignComponent extends DesignerTypeElementComponent {
|
5
|
-
datatypes:
|
5
|
+
datatypes: ElementFamily[];
|
6
6
|
readonly form: import("@angular/forms").FormGroup<{
|
7
7
|
dataType: import("@angular/forms").FormControl<any>;
|
8
8
|
}>;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { ElementFamily } from "../declarations";
|
2
2
|
import { DesignerTypeElementComponent } from "../designer.base";
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class ControlDesignComponent extends DesignerTypeElementComponent {
|
5
|
-
datatypes:
|
5
|
+
datatypes: ElementFamily[];
|
6
6
|
readonly form: import("@angular/forms").FormGroup<{
|
7
7
|
dataType: import("@angular/forms").FormControl<any>;
|
8
8
|
visible: import("@angular/forms").FormControl<unknown>;
|
@@ -3,7 +3,7 @@ import { FormBuilder } from "@angular/forms";
|
|
3
3
|
import { PromptService } from "../../../core/prompt.service";
|
4
4
|
import { BackgroundJobInfo, CubeInfo, SystemService } from "../../system.service";
|
5
5
|
import { DesignerTypeElementComponent } from "../designer.base";
|
6
|
-
import { DesignerRef, ElementInfo, CubeAxisModel, CubeIndexModel, PatternModel } from "../declarations";
|
6
|
+
import { DesignerRef, ElementInfo, CubeAxisModel, CubeIndexModel, PatternModel, ElementFamily } from "../declarations";
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
export declare class CubeDesignComponent extends DesignerTypeElementComponent implements OnInit {
|
9
9
|
private _service;
|
@@ -32,20 +32,20 @@ export declare class CubeDesignComponent extends DesignerTypeElementComponent im
|
|
32
32
|
jobInfo: BackgroundJobInfo;
|
33
33
|
syncing: boolean;
|
34
34
|
element: ElementRef<any>;
|
35
|
-
|
36
|
-
|
35
|
+
datatypes: ElementFamily[];
|
36
|
+
currencies: ElementInfo<any>[];
|
37
|
+
guides: ElementInfo<any>[];
|
37
38
|
constructor(fb: FormBuilder, _service: SystemService, _ps: PromptService, element: ElementRef<any>, ref: DesignerRef);
|
38
39
|
sync(): void;
|
39
40
|
ngOnInit(): void;
|
40
41
|
private _schedule;
|
41
|
-
private
|
42
|
+
private _form;
|
42
43
|
complete(): void;
|
43
44
|
nameOf(axis: string | string[]): string;
|
44
45
|
private newView;
|
45
46
|
newAxis(model?: CubeAxisModel): any;
|
46
47
|
newIndex(model?: CubeIndexModel): any;
|
47
48
|
newPattern(model?: PatternModel): any;
|
48
|
-
datatype(name: string): import("@bizdoc/core").LocalizedString;
|
49
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeDesignComponent, never>;
|
50
50
|
static ɵcmp: i0.ɵɵComponentDeclaration<CubeDesignComponent, "ng-component", never, {}, {}, never, never, false>;
|
51
51
|
}
|
@@ -14,6 +14,7 @@ export declare class FolderDesignComponent extends DesignerTypeElementComponent
|
|
14
14
|
}>;
|
15
15
|
cubes: ElementInfo[];
|
16
16
|
cube: ElementInfo<any>;
|
17
|
+
controls: ElementInfo<any>[];
|
17
18
|
ngOnInit(): void;
|
18
19
|
newColumn(column?: FolderColumn): any;
|
19
20
|
cubeSelected(evt: MatSelectChange): void;
|
@@ -36,8 +36,8 @@ export declare class FormDesignComponent extends DesignerTypeElementComponent im
|
|
36
36
|
primary: string;
|
37
37
|
readonly enableRtl: boolean;
|
38
38
|
locale: string;
|
39
|
-
|
40
|
-
|
39
|
+
guides: ElementInfo[];
|
40
|
+
cubes: ElementInfo[];
|
41
41
|
private readonly _intl;
|
42
42
|
private readonly _destroy;
|
43
43
|
constructor(fb: FormBuilder, _router: PanesRouter, _service: SystemService, _session: SessionService, _injector: Injector, _translate: TranslateService, element: ElementRef<any>, ref: DesignerRef);
|
@@ -1,5 +1,5 @@
|
|
1
|
+
import { ElementFamily } from "../declarations";
|
1
2
|
import { DesignerTypeElementComponent } from "../designer.base";
|
2
|
-
import { ElementInfo } from "../declarations";
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class RoleDesignComponent extends DesignerTypeElementComponent {
|
5
5
|
readonly form: import("@angular/forms").FormGroup<{
|
@@ -7,7 +7,7 @@ export declare class RoleDesignComponent extends DesignerTypeElementComponent {
|
|
7
7
|
priority: import("@angular/forms").FormControl<unknown>;
|
8
8
|
sequencePolicy: import("@angular/forms").FormControl<unknown>;
|
9
9
|
}>;
|
10
|
-
|
10
|
+
datatypes: ElementFamily[];
|
11
11
|
dataTypeDisabled: boolean;
|
12
12
|
ngOnInit(): void;
|
13
13
|
enableTypeEdit(): void;
|
@@ -15,7 +15,7 @@ export declare class TypeDesignComponent extends DesignerTypeElementComponent {
|
|
15
15
|
readonly form: import("@angular/forms").FormGroup<{
|
16
16
|
assignable: import("@angular/forms").FormControl<unknown>;
|
17
17
|
groups: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
|
18
|
-
|
18
|
+
tpatterns: import("@angular/forms").FormArray<import("@angular/forms").FormControl<unknown>>;
|
19
19
|
}>;
|
20
20
|
values: {
|
21
21
|
key: any;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { OnInit, OnDestroy } from "@angular/core";
|
2
2
|
import { FormBuilder, FormControl, NgControl, ControlValueAccessor } from "@angular/forms";
|
3
|
+
import { FloatLabelType } from "@angular/material/form-field";
|
3
4
|
import { MatInput } from "@angular/material/input";
|
4
|
-
import { Subject } from "rxjs";
|
5
5
|
import { SessionService } from "../../core/session.service";
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
/** */
|
@@ -9,9 +9,8 @@ export declare class LocalizedStringComponent implements OnInit, ControlValueAcc
|
|
9
9
|
ngControl: NgControl;
|
10
10
|
private _session;
|
11
11
|
private _fb;
|
12
|
-
controlType?: string;
|
13
|
-
private static nextId;
|
14
12
|
class: string;
|
13
|
+
floatLabel: FloatLabelType;
|
15
14
|
control: FormControl;
|
16
15
|
readonly group: import("@angular/forms").FormGroup<{}>;
|
17
16
|
readonly languages: string[];
|
@@ -19,10 +18,6 @@ export declare class LocalizedStringComponent implements OnInit, ControlValueAcc
|
|
19
18
|
controlInput: MatInput;
|
20
19
|
private readonly _destroy;
|
21
20
|
constructor(ngControl: NgControl, _session: SessionService, _fb: FormBuilder);
|
22
|
-
focused: boolean;
|
23
|
-
autofilled?: boolean;
|
24
|
-
userAriaDescribedBy?: string;
|
25
|
-
ngOnDestroy(): void;
|
26
21
|
private _onChange;
|
27
22
|
private _onTouched;
|
28
23
|
private _required;
|
@@ -34,23 +29,15 @@ export declare class LocalizedStringComponent implements OnInit, ControlValueAcc
|
|
34
29
|
setDisabledState?(isDisabled: boolean): void;
|
35
30
|
get value(): string;
|
36
31
|
set value(val: string);
|
37
|
-
readonly stateChanges: Subject<void>;
|
38
|
-
readonly valueChanges: Subject<string>;
|
39
|
-
id: string;
|
40
32
|
placeholder: string;
|
41
|
-
get empty(): boolean;
|
42
|
-
get shouldLabelFloat(): boolean;
|
43
33
|
get required(): boolean;
|
44
34
|
set required(req: boolean);
|
45
35
|
get disabled(): boolean;
|
46
36
|
set disabled(value: boolean);
|
47
|
-
errorState: boolean;
|
48
|
-
describedBy: string;
|
49
|
-
setDescribedByIds(ids: string[]): void;
|
50
|
-
onContainerClick(_event: MouseEvent): void;
|
51
37
|
maxlength: number;
|
52
38
|
ngOnInit(): void;
|
53
39
|
focus(): void;
|
40
|
+
ngOnDestroy(): void;
|
54
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedStringComponent, [{ optional: true; self: true; }, null, null]>;
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LocalizedStringComponent, "bizdoc-localized-string", never, { "class": "class"; "value": "value"; "placeholder": "placeholder"; "required": "required"; "disabled": "disabled"; "maxlength": "maxlength"; }, {
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocalizedStringComponent, "bizdoc-localized-string", never, { "class": "class"; "floatLabel": "floatLabel"; "value": "value"; "placeholder": "placeholder"; "required": "required"; "disabled": "disabled"; "maxlength": "maxlength"; }, {}, never, never, false>;
|
56
43
|
}
|
@@ -54,7 +54,6 @@ export declare class FormDesignerComponent implements OnInit {
|
|
54
54
|
sections: FormArray<import("@angular/forms").FormControl<unknown>>;
|
55
55
|
}>;
|
56
56
|
controls: ControlInfo[];
|
57
|
-
private readonly _controls;
|
58
57
|
private _formId;
|
59
58
|
constructor(_fb: FormBuilder, _pane: PaneRef<any>, _cd: ChangeDetectorRef, _ps: PromptService, _system: SystemService, _translate: TranslateService, _router: PanesRouter, _session: SessionService, _el: ElementRef, _ref: UtilityRef<boolean, {
|
60
59
|
metadata: BoxFormMetadata;
|
@@ -68,7 +67,7 @@ export declare class FormDesignerComponent implements OnInit {
|
|
68
67
|
private _fieldform;
|
69
68
|
addSection(evt?: Event): void;
|
70
69
|
addRow(section: FormGroup, evt?: Event): void;
|
71
|
-
iconOf(type: string):
|
70
|
+
iconOf(type: string): any;
|
72
71
|
addField(section: FormGroup, row: FormGroup, control: ControlInfo, evt?: Event): void;
|
73
72
|
editField(field: FormGroup): void;
|
74
73
|
editSection(field: FormGroup): void;
|
@@ -14,21 +14,21 @@ import { UtilityComponent } from '../../core/base';
|
|
14
14
|
import { UtilityRef } from '../utility-ref';
|
15
15
|
import { Popup } from '../../core/popup/popup.service';
|
16
16
|
import { ProgressBarMode } from '@angular/material/progress-bar';
|
17
|
-
import {
|
17
|
+
import { DataTypeInfo, SystemService } from '../system.service';
|
18
18
|
import * as i0 from "@angular/core";
|
19
19
|
export declare class PositionsComponent implements OnInit, OnDestroy, UtilityComponent<boolean, TypeMap>, AdminComponent {
|
20
20
|
private _session;
|
21
21
|
private _utilityRef;
|
22
22
|
private _datasources;
|
23
23
|
private _ps;
|
24
|
-
private _accounts;
|
25
24
|
private _translate;
|
26
25
|
private _popup;
|
26
|
+
private _service;
|
27
27
|
private _dialog;
|
28
28
|
_fileElement: ElementRef<HTMLInputElement>;
|
29
29
|
dataSource: MatTableDataSource<any>;
|
30
30
|
sort: MatSort;
|
31
|
-
|
31
|
+
datatypes: DataTypeInfo[];
|
32
32
|
roles: Role[];
|
33
33
|
tools: boolean;
|
34
34
|
displayedColumns: string[];
|
@@ -67,10 +67,13 @@ export declare class PositionsComponent implements OnInit, OnDestroy, UtilityCom
|
|
67
67
|
private readonly _destroy;
|
68
68
|
loading: ProgressBarMode;
|
69
69
|
/** positions ctor */
|
70
|
-
constructor(_session: SessionService, _utilityRef: UtilityRef<boolean, TypeMap>, _datasources: DatasourceService, _ps: PromptService,
|
70
|
+
constructor(_session: SessionService, _utilityRef: UtilityRef<boolean, TypeMap>, _datasources: DatasourceService, _ps: PromptService, title: WindowTitleService, _translate: TranslateService, _popup: Popup, _service: SystemService, _dialog: MatDialog);
|
71
71
|
ngOnInit(): void;
|
72
|
+
_prepare(): import("rxjs").Observable<[DataTypeInfo[], {
|
73
|
+
[name: string]: any;
|
74
|
+
}]>;
|
72
75
|
search(value: string): void;
|
73
|
-
change(name: string): void
|
76
|
+
change(name: string): Promise<void>;
|
74
77
|
private _columns;
|
75
78
|
/**
|
76
79
|
*
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
2
2
|
import { Observable } from 'rxjs';
|
3
|
-
import { Form } from '../core/models';
|
3
|
+
import { FieldInfo, Form } from '../core/models';
|
4
|
+
import { ElementFamily } from './architecture/declarations';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
export declare class SystemService {
|
6
7
|
private _http;
|
@@ -48,8 +49,11 @@ export declare class SystemService {
|
|
48
49
|
form(name: string): Observable<Form>;
|
49
50
|
private _controls;
|
50
51
|
controls(): Observable<ControlInfo[]>;
|
52
|
+
private _datatypes;
|
53
|
+
datatypes(): Observable<DataTypeInfo[]>;
|
51
54
|
save(form: Form): Observable<number>;
|
52
55
|
constructor(_http: HttpClient);
|
56
|
+
typegroups(): Observable<ElementFamily<any>[]>;
|
53
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<SystemService, never>;
|
54
58
|
static ɵprov: i0.ɵɵInjectableDeclaration<SystemService>;
|
55
59
|
}
|
@@ -70,6 +74,13 @@ export interface ControlInfo {
|
|
70
74
|
icon?: string;
|
71
75
|
template?: string;
|
72
76
|
}
|
77
|
+
export interface DataTypeInfo {
|
78
|
+
name: string;
|
79
|
+
title: string;
|
80
|
+
assignable?: boolean;
|
81
|
+
columns?: FieldInfo[];
|
82
|
+
family?: string;
|
83
|
+
}
|
73
84
|
export interface CubeInfo {
|
74
85
|
jobInfo: BackgroundJobInfo;
|
75
86
|
}
|
package/lib/core/checkbox.d.ts
CHANGED
@@ -2,9 +2,9 @@ import { ThemePalette } from "@angular/material/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
/** */
|
4
4
|
export declare class CheckboxComponent {
|
5
|
-
|
5
|
+
checked: boolean;
|
6
6
|
color: ThemePalette;
|
7
7
|
icon: 'switch' | 'checkbox';
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "bizdoc-checkbox", never, { "
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "bizdoc-checkbox", never, { "checked": "checked"; "color": "color"; "icon": "icon"; }, {}, never, ["*"], false>;
|
10
10
|
}
|
@@ -6,7 +6,7 @@ export declare class BizDocComponentFactoryResolver {
|
|
6
6
|
private _factories;
|
7
7
|
constructor(_componentFactoryResolver: ComponentFactoryResolver);
|
8
8
|
component(componentSelector: string): any;
|
9
|
-
resolve(componentSelector: string): import("@angular/core").ComponentFactory<
|
9
|
+
resolve<T = any>(componentSelector: string): import("@angular/core").ComponentFactory<T>;
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<BizDocComponentFactoryResolver, never>;
|
11
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<BizDocComponentFactoryResolver>;
|
12
12
|
}
|
@@ -4,8 +4,8 @@ import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
4
4
|
import { ControlComponent, ControlDesigner, ViewMode } from '../base';
|
5
5
|
import { TypeAutocomplete } from '../inputs/auto-complete.input';
|
6
6
|
import { DatasourceService } from '../datasource.service';
|
7
|
-
import {
|
8
|
-
import {
|
7
|
+
import { SystemService } from '../../admin/system.service';
|
8
|
+
import { OptionsControlDesigner } from './options.base';
|
9
9
|
import * as i0 from "@angular/core";
|
10
10
|
export declare class AutocompleteField implements ControlComponent, OnInit, OnDestroy {
|
11
11
|
private _ds;
|
@@ -29,10 +29,8 @@ export declare class AutocompleteField implements ControlComponent, OnInit, OnDe
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteField, never>;
|
30
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteField, "ng-component", never, { "params": "params"; }, {}, never, never, false>;
|
31
31
|
}
|
32
|
-
export declare class AutocompleteControlDesigner implements ControlDesigner<AutocompleteModel> {
|
33
|
-
private _session;
|
32
|
+
export declare class AutocompleteControlDesigner extends OptionsControlDesigner implements ControlDesigner<AutocompleteModel> {
|
34
33
|
private _fb;
|
35
|
-
readonly datatypes: Type[];
|
36
34
|
readonly form: import("@angular/forms").FormGroup<{
|
37
35
|
label: FormControl<unknown>;
|
38
36
|
multiple: FormControl<unknown>;
|
@@ -40,7 +38,7 @@ export declare class AutocompleteControlDesigner implements ControlDesigner<Auto
|
|
40
38
|
dataType: FormControl<any>;
|
41
39
|
hint: FormControl<unknown>;
|
42
40
|
}>;
|
43
|
-
constructor(
|
41
|
+
constructor(service: SystemService, _fb: FormBuilder);
|
44
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteControlDesigner, never>;
|
45
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteControlDesigner, "ng-component", never, {}, {}, never, never, false>;
|
46
44
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormBuilder } from '@angular/forms';
|
2
|
+
import { SystemService } from '../../admin/system.service';
|
2
3
|
import { ControlDesigner } from '../base';
|
3
4
|
import { LocalizedString } from '../models';
|
4
|
-
import { SessionService } from '../session.service';
|
5
5
|
import { OptionsControlDesigner } from './options.base';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class ChecklistControlDesigner extends OptionsControlDesigner implements ControlDesigner<ChecklistModel> {
|
@@ -13,7 +13,7 @@ export declare class ChecklistControlDesigner extends OptionsControlDesigner imp
|
|
13
13
|
dataType: import("@angular/forms").FormControl<any>;
|
14
14
|
hint: import("@angular/forms").FormControl<unknown>;
|
15
15
|
}>;
|
16
|
-
constructor(
|
16
|
+
constructor(service: SystemService, _fb: FormBuilder);
|
17
17
|
onBind(model: ChecklistModel): void;
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChecklistControlDesigner, never>;
|
19
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChecklistControlDesigner, "ng-component", never, {}, {}, never, never, false>;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
|
-
import { FormControl } from '@angular/forms';
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
3
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
3
4
|
import { AceInput } from '../../admin/core/ace.input';
|
4
|
-
import { ControlComponent, ViewMode } from '../base';
|
5
|
+
import { ControlComponent, ControlDesigner, ViewMode } from '../base';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
export declare class ExpressionField implements ControlComponent, OnInit {
|
7
8
|
ngOnInit(): void;
|
@@ -18,3 +19,12 @@ export declare class ExpressionField implements ControlComponent, OnInit {
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExpressionField, never>;
|
19
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<ExpressionField, "ng-component", never, { "params": "params"; }, {}, never, never, false>;
|
20
21
|
}
|
22
|
+
export declare class ExpressionFieldDesigner implements ControlDesigner, OnInit {
|
23
|
+
readonly form: FormGroup<any>;
|
24
|
+
onBind?(model: any): void;
|
25
|
+
ngOnInit(): void;
|
26
|
+
appearance?: MatFormFieldAppearance;
|
27
|
+
mode: ViewMode;
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpressionFieldDesigner, never>;
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpressionFieldDesigner, "ng-component", never, {}, {}, never, never, false>;
|
30
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
|
-
import { FormControl } from '@angular/forms';
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
3
3
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
4
|
-
import { ControlComponent, ViewMode } from '../base';
|
4
|
+
import { ControlComponent, ControlDesigner, ViewMode } from '../base';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
export declare class LocalizedStringField implements ControlComponent<any>, OnInit {
|
7
7
|
appearance: MatFormFieldAppearance;
|
@@ -14,3 +14,10 @@ export declare class LocalizedStringField implements ControlComponent<any>, OnIn
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedStringField, never>;
|
15
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<LocalizedStringField, "ng-component", never, {}, {}, never, never, false>;
|
16
16
|
}
|
17
|
+
export declare class LocalizedStringControlDesigner implements ControlDesigner<any>, OnInit {
|
18
|
+
ngOnInit(): void;
|
19
|
+
readonly form: FormGroup<any>;
|
20
|
+
onBind?(model: any): void;
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedStringControlDesigner, never>;
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocalizedStringControlDesigner, "ng-component", never, {}, {}, never, never, false>;
|
23
|
+
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { AbstractControl, FormControl, ValidationErrors } from '@angular/forms';
|
2
|
+
import { ElementFamily } from '../../admin/architecture/declarations';
|
3
|
+
import { SystemService } from '../../admin/system.service';
|
2
4
|
import { DatasourceService } from '../datasource.service';
|
3
|
-
import { LocalizedString
|
4
|
-
import { SessionService } from '../session.service';
|
5
|
+
import { LocalizedString } from '../models';
|
5
6
|
import * as i0 from "@angular/core";
|
6
7
|
export declare abstract class OptionsControlField {
|
7
8
|
private _ds;
|
@@ -19,10 +20,10 @@ export declare abstract class OptionsControlField {
|
|
19
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<OptionsControlField, never, never, {}, {}, never, never, false>;
|
20
21
|
}
|
21
22
|
export declare abstract class OptionsControlDesigner {
|
22
|
-
private
|
23
|
+
private _service;
|
23
24
|
readonly _typeRequired: (control: AbstractControl) => ValidationErrors | null;
|
24
|
-
|
25
|
-
constructor(
|
25
|
+
datatypes: ElementFamily[];
|
26
|
+
constructor(_service: SystemService);
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<OptionsControlDesigner, never>;
|
27
28
|
static ɵdir: i0.ɵɵDirectiveDeclaration<OptionsControlDesigner, never, never, {}, {}, never, never, false>;
|
28
29
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormBuilder } from "@angular/forms";
|
2
|
+
import { SystemService } from "../../admin/system.service";
|
2
3
|
import { ControlDesigner } from "../base";
|
3
4
|
import { LocalizedString } from "../models";
|
4
|
-
import { SessionService } from "../session.service";
|
5
5
|
import { OptionsControlDesigner } from "./options.base";
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class RadioButtonControlDesigner extends OptionsControlDesigner implements ControlDesigner<RadioButtonModel> {
|
@@ -12,7 +12,7 @@ export declare class RadioButtonControlDesigner extends OptionsControlDesigner i
|
|
12
12
|
hint: import("@angular/forms").FormControl<unknown>;
|
13
13
|
}>;
|
14
14
|
model: RadioButtonModel;
|
15
|
-
constructor(
|
15
|
+
constructor(service: SystemService, _fb: FormBuilder);
|
16
16
|
onBind(model: RadioButtonModel): void;
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonControlDesigner, never>;
|
18
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonControlDesigner, "ng-component", never, {}, {}, never, never, false>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormBuilder } from '@angular/forms';
|
2
|
+
import { SystemService } from '../../admin/system.service';
|
2
3
|
import { ControlDesigner } from '../base';
|
3
4
|
import { LocalizedString } from '../models';
|
4
|
-
import { SessionService } from '../session.service';
|
5
5
|
import { OptionsControlDesigner } from './options.base';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class SelectControlDesigner extends OptionsControlDesigner implements ControlDesigner<SelectModel> {
|
@@ -14,7 +14,7 @@ export declare class SelectControlDesigner extends OptionsControlDesigner implem
|
|
14
14
|
dataType: import("@angular/forms").FormControl<any>;
|
15
15
|
}>;
|
16
16
|
model: SelectModel;
|
17
|
-
constructor(
|
17
|
+
constructor(service: SystemService, _fb: FormBuilder);
|
18
18
|
onBind?(model: SelectModel): void;
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectControlDesigner, never>;
|
20
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectControlDesigner, "ng-component", never, {}, {}, never, never, false>;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { FormBuilder } from '@angular/forms';
|
2
|
+
import { ControlDesigner } from '../base';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class TimeControlDesigner implements ControlDesigner<DateModel> {
|
5
|
+
private _fb;
|
6
|
+
readonly form: import("@angular/forms").FormGroup<{
|
7
|
+
label: import("@angular/forms").FormControl<unknown>;
|
8
|
+
hint: import("@angular/forms").FormControl<unknown>;
|
9
|
+
placeholder: import("@angular/forms").FormControl<unknown>;
|
10
|
+
min: import("@angular/forms").FormControl<unknown>;
|
11
|
+
max: import("@angular/forms").FormControl<unknown>;
|
12
|
+
}>;
|
13
|
+
constructor(_fb: FormBuilder);
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeControlDesigner, never>;
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimeControlDesigner, "ng-component", never, {}, {}, never, never, false>;
|
16
|
+
}
|
17
|
+
interface DateModel {
|
18
|
+
placeholder?: string;
|
19
|
+
label?: string;
|
20
|
+
max?: number;
|
21
|
+
min?: number;
|
22
|
+
hint?: string;
|
23
|
+
required?: boolean;
|
24
|
+
}
|
25
|
+
export {};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
2
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
3
|
+
import { MatInput } from '@angular/material/input';
|
4
|
+
import { ControlComponent, ViewMode } from '../base';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class TimeField implements ControlComponent<any> {
|
7
|
+
appearance: MatFormFieldAppearance;
|
8
|
+
hint?: string;
|
9
|
+
placeholder?: string;
|
10
|
+
label?: string;
|
11
|
+
max?: number;
|
12
|
+
min?: number;
|
13
|
+
required?: boolean;
|
14
|
+
mode: ViewMode;
|
15
|
+
readonly isMobile: boolean;
|
16
|
+
readonly control: FormControl<any>;
|
17
|
+
input: MatInput;
|
18
|
+
focus(): void;
|
19
|
+
ngOnInit(): void;
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeField, never>;
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimeField, "ng-component", never, {}, {}, never, never, false>;
|
22
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
|
-
import { FormControl } from '@angular/forms';
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
3
3
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
4
|
-
import { ControlComponent, ViewMode } from '../base';
|
4
|
+
import { ControlComponent, ControlDesigner, ViewMode } from '../base';
|
5
5
|
import { TimespanInput } from '../inputs/timespan.input';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class TimespanField implements ControlComponent, OnInit {
|
@@ -18,3 +18,11 @@ export declare class TimespanField implements ControlComponent, OnInit {
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<TimespanField, never>;
|
19
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<TimespanField, "ng-component", never, {}, {}, never, never, false>;
|
20
20
|
}
|
21
|
+
export declare class TimespanControlDesigner implements ControlDesigner, OnInit {
|
22
|
+
ngOnInit(): void;
|
23
|
+
appearance?: MatFormFieldAppearance;
|
24
|
+
mode: ViewMode;
|
25
|
+
readonly form: FormGroup<{}>;
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimespanControlDesigner, never>;
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimespanControlDesigner, "ng-component", never, {}, {}, never, never, false>;
|
28
|
+
}
|
@@ -1,18 +1,16 @@
|
|
1
1
|
import { FormBuilder } from '@angular/forms';
|
2
|
+
import { SystemService } from '../../admin/system.service';
|
2
3
|
import { ControlDesigner } from '../base';
|
3
|
-
import {
|
4
|
-
import { SessionService } from '../session.service';
|
4
|
+
import { OptionsControlDesigner } from './options.base';
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
export declare class YesNoControlDesigner implements ControlDesigner<YesNoModel> {
|
7
|
-
private _session;
|
6
|
+
export declare class YesNoControlDesigner extends OptionsControlDesigner implements ControlDesigner<YesNoModel> {
|
8
7
|
private _fb;
|
9
|
-
readonly datatypes: Type[];
|
10
8
|
readonly form: import("@angular/forms").FormGroup<{
|
11
9
|
dataType: import("@angular/forms").FormControl<unknown>;
|
12
10
|
hint: import("@angular/forms").FormControl<unknown>;
|
13
11
|
defaultValue: import("@angular/forms").FormControl<unknown>;
|
14
12
|
}>;
|
15
|
-
constructor(
|
13
|
+
constructor(service: SystemService, _fb: FormBuilder);
|
16
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<YesNoControlDesigner, never>;
|
17
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<YesNoControlDesigner, "ng-component", never, {}, {}, never, never, false>;
|
18
16
|
}
|
@@ -1,9 +1,12 @@
|
|
1
|
-
import { EventEmitter, ViewContainerRef, OnDestroy, OnChanges, SimpleChanges,
|
1
|
+
import { EventEmitter, ViewContainerRef, OnDestroy, OnChanges, SimpleChanges, AfterViewInit } from '@angular/core';
|
2
2
|
import { FieldInfo } from './models';
|
3
3
|
import { FormGroup } from '@angular/forms';
|
4
|
+
import { BizDocComponentFactoryResolver } from './component-factory-resolver';
|
5
|
+
import { SessionService } from './session.service';
|
4
6
|
import * as i0 from "@angular/core";
|
5
7
|
export declare class LayoutComponent implements OnChanges, AfterViewInit, OnDestroy {
|
6
8
|
private _containerRef;
|
9
|
+
private _session;
|
7
10
|
private _resolver;
|
8
11
|
fields: FieldInfo[];
|
9
12
|
model: {};
|
@@ -17,7 +20,7 @@ export declare class LayoutComponent implements OnChanges, AfterViewInit, OnDest
|
|
17
20
|
readonly form: FormGroup<{}>;
|
18
21
|
private _children;
|
19
22
|
/** layout ctor */
|
20
|
-
constructor(_containerRef: ViewContainerRef, _resolver:
|
23
|
+
constructor(_containerRef: ViewContainerRef, _session: SessionService, _resolver: BizDocComponentFactoryResolver);
|
21
24
|
ngAfterViewInit(): void;
|
22
25
|
ngOnChanges(changes: SimpleChanges): void;
|
23
26
|
layout(): void;
|