@bizdoc/core 1.15.5 → 1.16.0
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 +14 -13
- package/assets/system/icons.json +1 -0
- package/esm2020/lib/admin/admin-menu.component.mjs +3 -3
- package/esm2020/lib/admin/configuration-designer/designer-element.component.mjs +115 -44
- package/esm2020/lib/admin/configuration-designer/designer.base.mjs +48 -15
- package/esm2020/lib/admin/configuration-designer/designer.component.mjs +113 -51
- package/esm2020/lib/admin/configuration-designer/elements/action.component.mjs +7 -12
- package/esm2020/lib/admin/configuration-designer/elements/analysis-view.component.mjs +6 -7
- package/esm2020/lib/admin/configuration-designer/elements/analysis-widget.component.mjs +6 -7
- package/esm2020/lib/admin/configuration-designer/elements/box-form.component.mjs +5 -1
- package/esm2020/lib/admin/configuration-designer/elements/configuration-datasource.component.mjs +68 -0
- package/esm2020/lib/admin/configuration-designer/elements/cube-index-utility.component.mjs +32 -0
- package/esm2020/lib/admin/configuration-designer/elements/cube.component.mjs +78 -57
- package/esm2020/lib/admin/configuration-designer/elements/documents-widget.component.mjs +2 -2
- package/esm2020/lib/admin/configuration-designer/elements/folder.component.mjs +9 -11
- package/esm2020/lib/admin/configuration-designer/elements/form.component.mjs +36 -20
- package/esm2020/lib/admin/configuration-designer/elements/guide.component.mjs +28 -22
- package/esm2020/lib/admin/configuration-designer/elements/matrix-view.component.mjs +41 -9
- package/esm2020/lib/admin/configuration-designer/elements/parallel-view.component.mjs +5 -4
- package/esm2020/lib/admin/configuration-designer/elements/pivot-view.component.mjs +6 -5
- package/esm2020/lib/admin/configuration-designer/elements/report.component.mjs +10 -10
- package/esm2020/lib/admin/configuration-designer/elements/return-to-role-action.component.mjs +11 -15
- package/esm2020/lib/admin/configuration-designer/elements/role.component.mjs +15 -10
- package/esm2020/lib/admin/configuration-designer/elements/rule.component.mjs +7 -5
- package/esm2020/lib/admin/configuration-designer/elements/state.component.mjs +9 -10
- package/esm2020/lib/admin/configuration-designer/elements/sum-view.component.mjs +5 -4
- package/esm2020/lib/admin/configuration-designer/elements/tasks-report.component.mjs +2 -2
- package/esm2020/lib/admin/configuration-designer/elements/type.component.mjs +8 -9
- package/esm2020/lib/admin/configuration-designer/elements/usage-report.component.mjs +5 -4
- package/esm2020/lib/admin/configuration-designer/elements/utility.component.mjs +12 -9
- package/esm2020/lib/admin/configuration-designer/elements/view.component.mjs +8 -8
- package/esm2020/lib/admin/configuration-designer/elements/widget.component.mjs +9 -10
- package/esm2020/lib/admin/configuration-designer/icon-picker.component.mjs +167 -0
- package/esm2020/lib/admin/configuration-designer/privileges.component.mjs +37 -19
- package/esm2020/lib/admin/core/ace.input.mjs +14 -16
- package/esm2020/lib/admin/core/color-picker.input.mjs +10 -33
- package/esm2020/lib/admin/form/designer/designer.component.mjs +200 -22
- package/esm2020/lib/admin/form/workflow/workflow.component.mjs +6 -6
- package/esm2020/lib/admin/patterns/patterns.component.mjs +1 -1
- package/esm2020/lib/admin/system.service.mjs +4 -1
- package/esm2020/lib/compose/box/box.component.mjs +44 -0
- package/esm2020/lib/compose/document.component.mjs +2 -2
- package/esm2020/lib/compose/form-ref.mjs +7 -2
- package/esm2020/lib/compose/form-selector/form-selector.sheet.mjs +3 -3
- package/esm2020/lib/compose/form.component.mjs +2 -2
- package/esm2020/lib/compose/new-menu.component.mjs +3 -3
- package/esm2020/lib/compose/version-compare/version-compare.component.mjs +2 -2
- package/esm2020/lib/core/functions.mjs +14 -2
- package/esm2020/lib/core/layout/layout.component.mjs +18 -30
- package/esm2020/lib/core/models.mjs +1 -1
- package/esm2020/lib/core/translations.mjs +4 -1
- package/esm2020/lib/cube/cube-info.service.mjs +1 -1
- package/esm2020/lib/cube/cube.service.mjs +1 -1
- package/esm2020/lib/cube/declarations.mjs +1 -1
- package/esm2020/lib/cube/filter/filter.component.mjs +3 -3
- package/esm2020/lib/cube/matrix/matrix.base.mjs +2 -2
- package/esm2020/lib/cube/matrix/matrix.pane.component.mjs +1 -1
- package/esm2020/lib/cube/matrix/table.component.mjs +19 -19
- package/esm2020/lib/cube/sum/sum.component.mjs +1 -1
- package/esm2020/lib/dashboard/cube/cube-analysis.base.mjs +1 -1
- package/esm2020/lib/reports/cube/usage-base.mjs +1 -1
- package/esm2020/lib/shared.module.mjs +9 -7
- package/esm2020/lib/system.module.mjs +13 -7
- package/esm2020/lib/views/cube/chart.component.mjs +1 -1
- package/esm2020/lib/views/cube/parallel.component.mjs +1 -1
- package/esm2020/public-api.mjs +3 -2
- package/fesm2015/bizdoc-core.mjs +6056 -5424
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +5839 -5215
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/admin/configuration-designer/designer-element.component.d.ts +30 -10
- package/lib/admin/configuration-designer/designer.base.d.ts +95 -39
- package/lib/admin/configuration-designer/designer.component.d.ts +19 -5
- package/lib/admin/configuration-designer/elements/action.component.d.ts +4 -6
- package/lib/admin/configuration-designer/elements/box-form.component.d.ts +2 -4
- package/lib/admin/configuration-designer/elements/configuration-datasource.component.d.ts +26 -0
- package/lib/admin/configuration-designer/elements/cube-index-utility.component.d.ts +12 -0
- package/lib/admin/configuration-designer/elements/cube.component.d.ts +18 -12
- package/lib/admin/configuration-designer/elements/folder.component.d.ts +4 -7
- package/lib/admin/configuration-designer/elements/form.component.d.ts +12 -11
- package/lib/admin/configuration-designer/elements/guide.component.d.ts +4 -6
- package/lib/admin/configuration-designer/elements/matrix-view.component.d.ts +7 -1
- package/lib/admin/configuration-designer/elements/pivot-view.component.d.ts +1 -1
- package/lib/admin/configuration-designer/elements/report.component.d.ts +4 -9
- package/lib/admin/configuration-designer/elements/return-to-role-action.component.d.ts +2 -4
- package/lib/admin/configuration-designer/elements/role.component.d.ts +5 -7
- package/lib/admin/configuration-designer/elements/rule.component.d.ts +5 -6
- package/lib/admin/configuration-designer/elements/state.component.d.ts +4 -4
- package/lib/admin/configuration-designer/elements/sum-view.component.d.ts +1 -0
- package/lib/admin/configuration-designer/elements/type.component.d.ts +3 -11
- package/lib/admin/configuration-designer/elements/utility.component.d.ts +6 -5
- package/lib/admin/configuration-designer/elements/view.component.d.ts +4 -8
- package/lib/admin/configuration-designer/elements/widget.component.d.ts +4 -6
- package/lib/admin/configuration-designer/icon-picker.component.d.ts +67 -0
- package/lib/admin/configuration-designer/privileges.component.d.ts +8 -7
- package/lib/admin/core/ace.input.d.ts +4 -4
- package/lib/admin/core/color-picker.input.d.ts +4 -6
- package/lib/admin/form/designer/designer.component.d.ts +68 -20
- package/lib/admin/form/workflow/workflow.component.d.ts +2 -2
- package/lib/admin/patterns/patterns.component.d.ts +2 -2
- package/lib/admin/system.service.d.ts +6 -0
- package/lib/compose/box/box.component.d.ts +17 -0
- package/lib/compose/form-ref.d.ts +6 -2
- package/lib/core/layout/layout.component.d.ts +0 -2
- package/lib/core/models.d.ts +6 -3
- package/lib/core/translations.d.ts +3 -0
- package/lib/cube/cube-info.service.d.ts +3 -2
- package/lib/cube/cube.service.d.ts +8 -8
- package/lib/cube/declarations.d.ts +2 -0
- package/lib/cube/matrix/matrix.base.d.ts +4 -3
- package/lib/cube/matrix/matrix.pane.component.d.ts +3 -2
- package/lib/cube/matrix/table.component.d.ts +8 -6
- package/lib/dashboard/cube/cube-analysis.base.d.ts +1 -0
- package/lib/reports/cube/usage-base.d.ts +2 -2
- package/lib/shared.module.d.ts +33 -33
- package/lib/system.module.d.ts +63 -59
- package/lib/views/cube/chart.component.d.ts +2 -1
- package/lib/views/cube/parallel.component.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -3
@@ -1,17 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { DesignerTypeElementComponent } from "../designer.base";
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
export declare class TypeDesignComponent extends
|
3
|
+
export declare class TypeDesignComponent extends DesignerTypeElementComponent {
|
4
4
|
readonly form: import("@angular/forms").FormGroup<{
|
5
|
-
|
6
|
-
title: import("@angular/forms").FormControl<unknown>;
|
7
|
-
assignable: import("@angular/forms").FormControl<boolean>;
|
5
|
+
assignable: import("@angular/forms").FormControl<unknown>;
|
8
6
|
}>;
|
9
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TypeDesignComponent, never>;
|
10
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<TypeDesignComponent, "ng-component", never, {}, {}, never, never, false>;
|
11
9
|
}
|
12
|
-
interface Model {
|
13
|
-
assignable?: boolean;
|
14
|
-
name: null;
|
15
|
-
title: null;
|
16
|
-
}
|
17
|
-
export {};
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import {
|
2
|
-
import { DesignerElementComponent } from "../designer.base";
|
1
|
+
import { DesignerTypeElementComponent } from "../designer.base";
|
3
2
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class UtilityDesignComponent extends
|
5
|
-
|
6
|
-
|
3
|
+
export declare class UtilityDesignComponent extends DesignerTypeElementComponent {
|
4
|
+
privilieges: boolean;
|
5
|
+
readonly form: import("@angular/forms").FormGroup<{
|
6
|
+
icon: import("@angular/forms").FormControl<unknown>;
|
7
|
+
}>;
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityDesignComponent, never>;
|
8
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<UtilityDesignComponent, "ng-component", never, {}, {}, never, never, false>;
|
9
10
|
}
|
@@ -1,12 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import { DesignerElementComponent } from "../designer.base";
|
1
|
+
import { DesignerTypeElementComponent } from "../designer.base";
|
3
2
|
import * as i0 from "@angular/core";
|
4
|
-
export declare class ViewDesignComponent extends
|
5
|
-
|
6
|
-
|
3
|
+
export declare class ViewDesignComponent extends DesignerTypeElementComponent {
|
4
|
+
privilieges: boolean;
|
5
|
+
form: import("@angular/forms").FormGroup<{}>;
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<ViewDesignComponent, never>;
|
8
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<ViewDesignComponent, "ng-component", never, {}, {}, never, never, false>;
|
9
8
|
}
|
10
|
-
interface Model {
|
11
|
-
}
|
12
|
-
export {};
|
@@ -1,10 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { DesignerTypeElementComponent } from "../designer.base";
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
export declare class WidgetDesignComponent extends
|
4
|
-
|
5
|
-
|
6
|
-
title: import("@angular/forms").FormControl<unknown>;
|
7
|
-
}>;
|
3
|
+
export declare class WidgetDesignComponent extends DesignerTypeElementComponent {
|
4
|
+
privilieges: boolean;
|
5
|
+
form: import("@angular/forms").FormGroup<{}>;
|
8
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetDesignComponent, never>;
|
9
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetDesignComponent, "ng-component", never, {}, {}, never, never, false>;
|
10
8
|
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { Directionality } from "@angular/cdk/bidi";
|
2
|
+
import { Overlay } from "@angular/cdk/overlay";
|
3
|
+
import { HttpClient } from "@angular/common/http";
|
4
|
+
import { ElementRef, EventEmitter, OnInit, TemplateRef, ViewContainerRef } from "@angular/core";
|
5
|
+
import { ControlValueAccessor, FormControl, NgControl } from "@angular/forms";
|
6
|
+
import { MatFormFieldControl } from "@angular/material/form-field";
|
7
|
+
import { Subject } from "rxjs";
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export declare class IconPickerComponent implements MatFormFieldControl<string>, ControlValueAccessor, OnInit {
|
10
|
+
ngControl: NgControl;
|
11
|
+
private _overlay;
|
12
|
+
private _http;
|
13
|
+
private _vc;
|
14
|
+
private _element;
|
15
|
+
private _dir;
|
16
|
+
private static nextId;
|
17
|
+
id: string;
|
18
|
+
private _value;
|
19
|
+
get value(): string;
|
20
|
+
set value(val: string);
|
21
|
+
get empty(): boolean;
|
22
|
+
get shouldLabelFloat(): boolean;
|
23
|
+
get required(): boolean;
|
24
|
+
set required(req: boolean);
|
25
|
+
get disabled(): boolean;
|
26
|
+
set disabled(value: boolean);
|
27
|
+
errorState: boolean;
|
28
|
+
describedBy: string;
|
29
|
+
placeholder: string;
|
30
|
+
focused: boolean;
|
31
|
+
readonly valueChanges: EventEmitter<string>;
|
32
|
+
panel: TemplateRef<any>;
|
33
|
+
readonly categories: CategoryInfo[];
|
34
|
+
readonly filter: FormControl<any>;
|
35
|
+
private static icons;
|
36
|
+
private _overlayRef;
|
37
|
+
private _onChange;
|
38
|
+
private _onTouched;
|
39
|
+
private _required;
|
40
|
+
private _disabled;
|
41
|
+
readonly stateChanges: Subject<void>;
|
42
|
+
constructor(ngControl: NgControl, _overlay: Overlay, _http: HttpClient, _vc: ViewContainerRef, _element: ElementRef, _dir: Directionality);
|
43
|
+
registerOnChange(fn: any): void;
|
44
|
+
registerOnTouched(fn: any): void;
|
45
|
+
writeValue(obj: any): void;
|
46
|
+
setDescribedByIds(ids: string[]): void;
|
47
|
+
onContainerClick(_event: MouseEvent): void;
|
48
|
+
ngOnInit(): void;
|
49
|
+
private _list;
|
50
|
+
open(): void;
|
51
|
+
_trackBy(index: number, el: IconInfo | CategoryInfo): string;
|
52
|
+
_clear(): void;
|
53
|
+
close(): void;
|
54
|
+
_pick(icon: IconInfo): void;
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconPickerComponent, [{ optional: true; self: true; }, null, null, null, null, null]>;
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconPickerComponent, "bizdoc-icon-picker", never, { "value": "value"; "required": "required"; "disabled": "disabled"; }, { "valueChanges": "valueChanges"; }, never, never, false>;
|
57
|
+
}
|
58
|
+
interface CategoryInfo {
|
59
|
+
name: string;
|
60
|
+
items: IconInfo[];
|
61
|
+
}
|
62
|
+
interface IconInfo {
|
63
|
+
name: string;
|
64
|
+
categories: string[];
|
65
|
+
tags: string[];
|
66
|
+
}
|
67
|
+
export {};
|
@@ -1,23 +1,24 @@
|
|
1
|
-
import { EventEmitter, OnInit } from "@angular/core";
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnInit } from "@angular/core";
|
2
2
|
import { FormBuilder } from "@angular/forms";
|
3
|
-
import { MatSelectionListChange } from "@angular/material/list";
|
3
|
+
import { MatSelectionList, MatSelectionListChange } from "@angular/material/list";
|
4
4
|
import { Role } from "../../core/models";
|
5
|
-
import { SessionService } from "../../core/session.service";
|
6
5
|
import { SystemService } from "../system.service";
|
7
|
-
import { PrivilegesModel } from "./designer.base";
|
6
|
+
import { DesignerRef, PrivilegesModel } from "./designer.base";
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
export declare class PrivilegesDesignComponent implements OnInit {
|
10
9
|
private _fb;
|
11
|
-
private _session;
|
12
10
|
private _service;
|
11
|
+
private _cd;
|
12
|
+
private _ref;
|
13
13
|
model: PrivilegesModel;
|
14
|
-
readonly change: EventEmitter<
|
14
|
+
readonly change: EventEmitter<PrivilegesModel>;
|
15
|
+
list: MatSelectionList;
|
15
16
|
readonly form: import("@angular/forms").FormGroup<{
|
16
17
|
rule: import("@angular/forms").FormControl<unknown>;
|
17
18
|
roles: import("@angular/forms").FormControl<string[]>;
|
18
19
|
}>;
|
19
20
|
roles: Role[];
|
20
|
-
constructor(_fb: FormBuilder,
|
21
|
+
constructor(_fb: FormBuilder, _service: SystemService, _cd: ChangeDetectorRef, _ref: DesignerRef);
|
21
22
|
ngOnInit(): void;
|
22
23
|
rolesChange(evt: MatSelectionListChange): void;
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<PrivilegesDesignComponent, never>;
|
@@ -1,17 +1,16 @@
|
|
1
1
|
import { OnDestroy, OnInit, ElementRef } from '@angular/core';
|
2
2
|
import { NgControl, ControlValueAccessor } from '@angular/forms';
|
3
3
|
import { Subject } from 'rxjs';
|
4
|
-
import { HttpClient } from '@angular/common/http';
|
5
4
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
6
5
|
import 'brace/mode/javascript';
|
7
6
|
import 'brace/theme/github';
|
8
7
|
import 'brace/ext/language_tools';
|
8
|
+
import { SystemService } from '../system.service';
|
9
9
|
import * as i0 from "@angular/core";
|
10
10
|
export declare class AceInput implements MatFormFieldControl<string>, ControlValueAccessor, OnDestroy, OnInit {
|
11
11
|
ngControl: NgControl;
|
12
12
|
private _el;
|
13
|
-
private
|
14
|
-
focus(): void;
|
13
|
+
private _service;
|
15
14
|
private static nextId;
|
16
15
|
private _placeholder;
|
17
16
|
private _required;
|
@@ -44,8 +43,9 @@ export declare class AceInput implements MatFormFieldControl<string>, ControlVal
|
|
44
43
|
setDisabledState?(isDisabled: boolean): void;
|
45
44
|
get value(): string;
|
46
45
|
set value(val: string);
|
47
|
-
constructor(ngControl: NgControl, _el: ElementRef,
|
46
|
+
constructor(ngControl: NgControl, _el: ElementRef, _service: SystemService);
|
48
47
|
ngOnInit(): void;
|
48
|
+
focus(): void;
|
49
49
|
ngOnDestroy(): void;
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<AceInput, [{ optional: true; self: true; }, null, null]>;
|
51
51
|
static ɵcmp: i0.ɵɵComponentDeclaration<AceInput, "bizdoc-ace-input", never, { "params": "params"; "placeholder": "placeholder"; "required": "required"; "disabled": "disabled"; "value": "value"; }, {}, never, never, false>;
|
@@ -3,7 +3,6 @@ import { MatFormFieldControl } from "@angular/material/form-field";
|
|
3
3
|
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
4
4
|
import { Overlay } from "@angular/cdk/overlay";
|
5
5
|
import { Subject } from "rxjs";
|
6
|
-
import { MatButton } from "@angular/material/button";
|
7
6
|
import { Directionality } from "@angular/cdk/bidi";
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
export declare class ColorPicker implements MatFormFieldControl<string>, ControlValueAccessor, OnDestroy {
|
@@ -12,6 +11,7 @@ export declare class ColorPicker implements MatFormFieldControl<string>, Control
|
|
12
11
|
private _vc;
|
13
12
|
private _element;
|
14
13
|
private _dir;
|
14
|
+
controlType?: string;
|
15
15
|
private static nextId;
|
16
16
|
readonly _palettes: {
|
17
17
|
[name: string]: {
|
@@ -19,14 +19,13 @@ export declare class ColorPicker implements MatFormFieldControl<string>, Control
|
|
19
19
|
};
|
20
20
|
};
|
21
21
|
label: string;
|
22
|
-
scales: string[];
|
23
|
-
colors: string[];
|
22
|
+
readonly scales: string[];
|
23
|
+
readonly colors: string[];
|
24
24
|
readonly Object: ObjectConstructor;
|
25
25
|
private _onChange;
|
26
26
|
private _onTouched;
|
27
27
|
private _required;
|
28
28
|
private _disabled;
|
29
|
-
private _opened;
|
30
29
|
private _value;
|
31
30
|
writeValue(obj: any): void;
|
32
31
|
registerOnChange(fn: any): void;
|
@@ -49,7 +48,6 @@ export declare class ColorPicker implements MatFormFieldControl<string>, Control
|
|
49
48
|
describedBy: string;
|
50
49
|
setDescribedByIds(ids: string[]): void;
|
51
50
|
onContainerClick(_event: MouseEvent): void;
|
52
|
-
_trigger: MatButton;
|
53
51
|
_colorPalette: TemplateRef<any>;
|
54
52
|
ngOnDestroy(): void;
|
55
53
|
private _overlayRef;
|
@@ -60,5 +58,5 @@ export declare class ColorPicker implements MatFormFieldControl<string>, Control
|
|
60
58
|
_pick(color: string): void;
|
61
59
|
private _createOverlay;
|
62
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPicker, [{ optional: true; self: true; }, null, null, null, null]>;
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPicker, "bizdoc-color-picker", never, { "label": "label"; "required": "required"; "disabled": "disabled"; }, { "valueChanges": "valueChanges"; }, never, never, false>;
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPicker, "bizdoc-color-picker", never, { "label": "label"; "value": "value"; "required": "required"; "disabled": "disabled"; }, { "valueChanges": "valueChanges"; }, never, never, false>;
|
64
62
|
}
|
@@ -1,46 +1,94 @@
|
|
1
1
|
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
2
|
-
import { OnInit } from "@angular/core";
|
3
|
-
import { FormBuilder } from "@angular/forms";
|
4
|
-
import { FieldType, Type } from "../../../core/models";
|
2
|
+
import { ChangeDetectorRef, ElementRef, OnInit } from "@angular/core";
|
3
|
+
import { FormArray, FormBuilder, FormGroup } from "@angular/forms";
|
4
|
+
import { Cube, FieldType, Type } from "../../../core/models";
|
5
|
+
import { PromptService } from "../../../core/prompt.service";
|
5
6
|
import { SessionService } from "../../../core/session.service";
|
7
|
+
import { PaneRef } from "../../../core/slots/pane-ref";
|
6
8
|
import { UtilityRef } from "../../utility-ref";
|
7
9
|
import * as i0 from "@angular/core";
|
8
10
|
/** */
|
9
11
|
export declare class FormDesignerComponent implements OnInit {
|
10
12
|
private _fb;
|
13
|
+
private _pane;
|
14
|
+
private _cd;
|
15
|
+
private _ps;
|
11
16
|
private _session;
|
17
|
+
private _el;
|
12
18
|
private _ref;
|
13
19
|
loading: boolean;
|
14
20
|
tools: boolean;
|
15
21
|
saving: boolean;
|
16
|
-
model:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
+
model: BoxFormMetadata;
|
23
|
+
readonly history: string[];
|
24
|
+
historyIndex: number;
|
25
|
+
readonly datatypes: Type[];
|
26
|
+
readonly cubes: Cube[];
|
27
|
+
readonly form: FormGroup<{
|
28
|
+
subject: import("@angular/forms").FormControl<unknown>;
|
29
|
+
value: import("@angular/forms").FormControl<unknown>;
|
30
|
+
cube: import("@angular/forms").FormControl<unknown>;
|
31
|
+
summary: import("@angular/forms").FormControl<unknown>;
|
32
|
+
sections: FormArray<import("@angular/forms").FormControl<unknown>>;
|
22
33
|
}>;
|
23
|
-
|
34
|
+
title: string;
|
35
|
+
dirty: boolean;
|
36
|
+
settings: boolean;
|
37
|
+
private _formId;
|
38
|
+
constructor(_fb: FormBuilder, _pane: PaneRef<any>, _cd: ChangeDetectorRef, _ps: PromptService, _session: SessionService, _el: ElementRef, _ref: UtilityRef<boolean, {
|
39
|
+
metadata: BoxFormMetadata;
|
40
|
+
formId: string;
|
41
|
+
}, BoxFormMetadata, string>);
|
24
42
|
ngOnInit(): void;
|
25
|
-
|
43
|
+
private _open;
|
44
|
+
private _assign;
|
45
|
+
private _sectionform;
|
46
|
+
private _rowform;
|
47
|
+
private _fieldform;
|
48
|
+
addSection(evt?: Event): void;
|
49
|
+
addRow(section: FormGroup, evt?: Event): void;
|
50
|
+
addField(section: FormGroup, row: FormGroup, kind: FieldType, evt?: Event): void;
|
51
|
+
removeField(row: FormGroup, field: FormGroup): void;
|
52
|
+
removeSection(section: FormGroup): void;
|
53
|
+
removeRow(section: FormGroup, row: FormGroup): void;
|
54
|
+
private _notifyChange;
|
55
|
+
private _restore;
|
56
|
+
undo(): void;
|
57
|
+
redo(): void;
|
58
|
+
/**
|
59
|
+
* Ctrl-s save; Ctrl-z undo
|
60
|
+
* @param event
|
61
|
+
*/
|
62
|
+
handleKeyboardEvent(event: KeyboardEvent): void;
|
63
|
+
drop(event: CdkDragDrop<FormGroup>, collection: FormArray): void;
|
26
64
|
save(): void;
|
27
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormDesignerComponent, never>;
|
28
66
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormDesignerComponent, "ng-component", never, {}, {}, never, never, false>;
|
29
67
|
}
|
30
|
-
interface
|
31
|
-
sections:
|
68
|
+
export interface BoxFormMetadata {
|
69
|
+
sections: SectionModel[];
|
70
|
+
value?: string;
|
71
|
+
subject?: string;
|
72
|
+
summary?: string;
|
73
|
+
cube?: string;
|
74
|
+
}
|
75
|
+
interface SectionModel {
|
32
76
|
name: string;
|
33
77
|
title: string;
|
78
|
+
value?: string;
|
79
|
+
multiLine?: boolean;
|
80
|
+
rows: RowModel[];
|
34
81
|
}
|
35
|
-
interface
|
36
|
-
|
82
|
+
interface RowModel {
|
83
|
+
fields: FieldModel[];
|
37
84
|
}
|
38
|
-
interface
|
39
|
-
|
40
|
-
}
|
41
|
-
interface Field {
|
85
|
+
interface FieldModel {
|
86
|
+
name: string;
|
42
87
|
label: string;
|
43
88
|
kind: FieldType;
|
44
|
-
|
89
|
+
required?: boolean;
|
90
|
+
dataType?: string;
|
91
|
+
min?: any;
|
92
|
+
max?: any;
|
45
93
|
}
|
46
94
|
export {};
|
@@ -9,7 +9,7 @@ import { PanesRouter } from '../../../core/slots/router.service';
|
|
9
9
|
import { AdminComponent } from '../../admin-dismiss.service';
|
10
10
|
import * as i0 from "@angular/core";
|
11
11
|
export declare class WorkflowComponent implements OnInit, AfterViewInit, OnDestroy, AdminComponent {
|
12
|
-
private
|
12
|
+
private _ps;
|
13
13
|
private _service;
|
14
14
|
private _pane;
|
15
15
|
private _router;
|
@@ -41,7 +41,7 @@ export declare class WorkflowComponent implements OnInit, AfterViewInit, OnDestr
|
|
41
41
|
private readonly _destroy;
|
42
42
|
private readonly _nodedestroy;
|
43
43
|
/** workflow ctor */
|
44
|
-
constructor(
|
44
|
+
constructor(_ps: PromptService, _service: SystemService, _pane: PaneRef<WorkflowComponent>, _router: PanesRouter, _session: SessionService, _translate: TranslateService);
|
45
45
|
ngAfterViewInit(): void;
|
46
46
|
ngOnInit(): void;
|
47
47
|
private _palettes;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { OnInit, OnDestroy, TemplateRef } from '@angular/core';
|
2
2
|
import { FormBuilder } from '@angular/forms';
|
3
3
|
import { Observable } from 'rxjs';
|
4
|
-
import { Cube,
|
4
|
+
import { Cube, AxisValue } from '../../core/models';
|
5
5
|
import { UtilityComponent } from '../../core/base';
|
6
6
|
import { SessionService } from '../../core/session.service';
|
7
7
|
import { UtilityRef } from "../utility-ref";
|
@@ -69,7 +69,7 @@ interface Pattern {
|
|
69
69
|
title: string;
|
70
70
|
roles: string[];
|
71
71
|
axes: {
|
72
|
-
[axis: string]:
|
72
|
+
[axis: string]: AxisValue;
|
73
73
|
};
|
74
74
|
}
|
75
75
|
interface Role {
|
@@ -4,6 +4,7 @@ import { Form, Role } from '../core/models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class SystemService {
|
6
6
|
private _http;
|
7
|
+
rules(args?: any): Observable<Rule[]>;
|
7
8
|
synchrinize(name: string): Observable<Object>;
|
8
9
|
private static _cache;
|
9
10
|
findAll(options: {
|
@@ -34,3 +35,8 @@ export interface DocumentInfo {
|
|
34
35
|
}
|
35
36
|
export interface CubeInfo {
|
36
37
|
}
|
38
|
+
interface Rule {
|
39
|
+
name: string;
|
40
|
+
title: string;
|
41
|
+
}
|
42
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { FormBuilder, FormGroup } from "@angular/forms";
|
2
|
+
import { BoxFormMetadata } from "../../admin/form/designer/designer.component";
|
3
|
+
import { FormComponent, ViewMode } from "../../core/base";
|
4
|
+
import { DocumentModel } from "../../core/models";
|
5
|
+
import { FormRef } from "../form-ref";
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class BoxFormComponent implements FormComponent<any> {
|
8
|
+
private _fb;
|
9
|
+
metadata: BoxFormMetadata;
|
10
|
+
data: DocumentModel<any>;
|
11
|
+
constructor(_fb: FormBuilder, ref: FormRef<any, BoxFormMetadata>);
|
12
|
+
readonly form: FormGroup<any>;
|
13
|
+
mode: ViewMode;
|
14
|
+
onBind(data: DocumentModel<any>, version?: any): void;
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BoxFormComponent, never>;
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BoxFormComponent, "ng-component", never, {}, {}, never, never, false>;
|
17
|
+
}
|
@@ -1,12 +1,16 @@
|
|
1
1
|
import { Subject } from "rxjs";
|
2
2
|
import { ViewMode } from "../core/base";
|
3
|
-
|
3
|
+
import { Form } from "../core/models";
|
4
|
+
export declare class FormRef<M = any, O = any> {
|
5
|
+
private _configuration;
|
4
6
|
readonly _saving: Subject<SaveEventArgs>;
|
5
7
|
readonly _stateChange: Subject<void>;
|
6
8
|
readonly _modelChange: Subject<M>;
|
7
9
|
readonly _navigating: Subject<string | number>;
|
8
10
|
_mode?: ViewMode;
|
9
|
-
constructor();
|
11
|
+
constructor(/*private _router: RouterImpl*/ _configuration: Form);
|
12
|
+
/** configuration options */
|
13
|
+
get options(): O;
|
10
14
|
private _help;
|
11
15
|
/** intercept save */
|
12
16
|
get saving(): import("rxjs").Observable<SaveEventArgs>;
|
@@ -14,7 +14,6 @@ export declare class LayoutComponent implements OnChanges, AfterViewInit, OnDest
|
|
14
14
|
valid: boolean;
|
15
15
|
readonly validChange: EventEmitter<boolean>;
|
16
16
|
containerRef: ViewContainerRef;
|
17
|
-
private _cmpRef;
|
18
17
|
private readonly _destroy;
|
19
18
|
form: FormGroup;
|
20
19
|
private _instance;
|
@@ -25,7 +24,6 @@ export declare class LayoutComponent implements OnChanges, AfterViewInit, OnDest
|
|
25
24
|
ngOnChanges(changes: SimpleChanges): void;
|
26
25
|
create(): void;
|
27
26
|
private _validations;
|
28
|
-
private _bind;
|
29
27
|
focus(): void;
|
30
28
|
ngOnDestroy(): void;
|
31
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
package/lib/core/models.d.ts
CHANGED
@@ -479,15 +479,17 @@ export interface Report {
|
|
479
479
|
}
|
480
480
|
export interface Form {
|
481
481
|
name: string;
|
482
|
+
options?: any;
|
482
483
|
title: string;
|
483
484
|
creatable: boolean;
|
484
485
|
icon: string;
|
485
|
-
position?:
|
486
|
+
position?: PositionPolicy;
|
486
487
|
template?: string;
|
487
488
|
structure?: FieldInfo[];
|
488
489
|
workflow?: Workflow;
|
489
490
|
guide?: string;
|
490
491
|
}
|
492
|
+
export declare type PositionPolicy = 'Require' | 'Ask' | 'None';
|
491
493
|
export interface Workflow {
|
492
494
|
version: number;
|
493
495
|
connectors: ConnectorModel[];
|
@@ -558,9 +560,10 @@ export interface CubeAxis {
|
|
558
560
|
selectionMode?: 'Single' | 'Pattern' | 'Multiple' | 'Search' | 'None';
|
559
561
|
descendentOf?: string;
|
560
562
|
}
|
561
|
-
export declare type
|
563
|
+
export declare type AxisSelectionMode = 'None' | 'Single' | 'Multiple' | 'Search' | 'Pattern';
|
564
|
+
export declare type AxisValue = string | number | Array<string | number>;
|
562
565
|
export interface AxesMap {
|
563
|
-
[axis: string]:
|
566
|
+
[axis: string]: AxisValue;
|
564
567
|
}
|
565
568
|
export interface CubeView {
|
566
569
|
xAxis: string[];
|
@@ -7,6 +7,7 @@ import { Popup } from "../core/popup/popup.service";
|
|
7
7
|
import { RouterImpl } from "../core/router";
|
8
8
|
import { SumSettings } from "./matrix/table.component";
|
9
9
|
import { ScopeType } from "../core/configuration";
|
10
|
+
import { AxisPlace, AxisType } from "./declarations";
|
10
11
|
import * as i0 from "@angular/core";
|
11
12
|
export interface CubeData {
|
12
13
|
axes: AxesMap;
|
@@ -29,8 +30,8 @@ export interface CubeDataOptions {
|
|
29
30
|
sum?: SumSettings | SumSettings[];
|
30
31
|
seriesTotalLabel?: string;
|
31
32
|
xAxisTotalLabel?: string;
|
32
|
-
indexAt?:
|
33
|
-
placeAt?:
|
33
|
+
indexAt?: AxisType;
|
34
|
+
placeAt?: AxisPlace;
|
34
35
|
}
|
35
36
|
export interface ExploreOptions {
|
36
37
|
cube?: string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
|
2
2
|
import { Observable } from 'rxjs';
|
3
3
|
import { BizDocConfig, ParamMap, ScopeType } from '../core/configuration';
|
4
|
-
import { FieldInfo,
|
4
|
+
import { FieldInfo, AxisValue, AxesMap } from '../core/models';
|
5
5
|
import { SessionService } from '../core/session.service';
|
6
6
|
import { DatasourceService } from '../core/datasource.service';
|
7
7
|
import * as i0 from "@angular/core";
|
@@ -45,7 +45,7 @@ export declare class CubeService {
|
|
45
45
|
inverseIndices?: boolean;
|
46
46
|
/** axes */
|
47
47
|
filters?: {
|
48
|
-
[axis: string]:
|
48
|
+
[axis: string]: AxisValue;
|
49
49
|
};
|
50
50
|
scope?: ScopeType;
|
51
51
|
/** replace base */
|
@@ -75,7 +75,7 @@ export declare class CubeService {
|
|
75
75
|
* @param options
|
76
76
|
*/
|
77
77
|
resolve(cube: string, axes: {
|
78
|
-
[key: string]:
|
78
|
+
[key: string]: AxisValue;
|
79
79
|
}, options?: {
|
80
80
|
/** replace base */
|
81
81
|
base?: {
|
@@ -95,7 +95,7 @@ export declare class CubeService {
|
|
95
95
|
* @param options
|
96
96
|
*/
|
97
97
|
explore(cube: string, axes: {
|
98
|
-
[key: string]:
|
98
|
+
[key: string]: AxisValue;
|
99
99
|
}, options?: {
|
100
100
|
/** restrict results to user patterns or positions */
|
101
101
|
scope?: ScopeType;
|
@@ -118,7 +118,7 @@ export declare class CubeService {
|
|
118
118
|
* @param options
|
119
119
|
*/
|
120
120
|
indices(cube: string, index: string, axes: {
|
121
|
-
[axis: string]:
|
121
|
+
[axis: string]: AxisValue;
|
122
122
|
}, options?: {
|
123
123
|
/** restrict results to user patterns or positions */
|
124
124
|
scope?: ScopeType;
|
@@ -134,7 +134,7 @@ export declare class CubeService {
|
|
134
134
|
* @param options
|
135
135
|
*/
|
136
136
|
item(cube: string, axes: {
|
137
|
-
[axis: string]:
|
137
|
+
[axis: string]: AxisValue;
|
138
138
|
}, keys: (string | number)[] | string | number, options?: {
|
139
139
|
/** replace base */
|
140
140
|
base?: {
|
@@ -147,7 +147,7 @@ export declare class CubeService {
|
|
147
147
|
* @param axes condition
|
148
148
|
*/
|
149
149
|
constraints(cube: string, axes?: {
|
150
|
-
[key: string]:
|
150
|
+
[key: string]: AxisValue;
|
151
151
|
}, options?: {
|
152
152
|
source: 'constraints' | 'combinations';
|
153
153
|
}): Observable<{
|
@@ -170,7 +170,7 @@ export declare class CubeService {
|
|
170
170
|
* @param options
|
171
171
|
*/
|
172
172
|
combinations(cube: string, axes?: {
|
173
|
-
[key: string]:
|
173
|
+
[key: string]: AxisValue;
|
174
174
|
}, options?: {
|
175
175
|
/** top */
|
176
176
|
take?: number;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { EventEmitter, OnChanges } from '@angular/core';
|
2
2
|
import { AxesMap } from '../core/models';
|
3
|
+
export declare type AxisType = 'Series' | 'XAxis';
|
4
|
+
export declare type AxisPlace = 'Leading' | 'Trailing';
|
3
5
|
export interface AxisClickEvent {
|
4
6
|
axes: AxesMap;
|
5
7
|
/** index name */
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { Observable } from 'rxjs';
|
2
|
+
import { AxesMap, Cube, CubeAxis } from '../../core/models';
|
2
3
|
import { SessionService } from '../../core/session.service';
|
3
4
|
import { DatasourceService } from '../../core/datasource.service';
|
4
5
|
import { CubeService, Pattern } from '../cube.service';
|
5
|
-
import {
|
6
|
+
import { AxisPlace, AxisType } from '../declarations';
|
6
7
|
import { CubeMatrixComponent, SumSettings } from './table.component';
|
7
8
|
import * as i0 from "@angular/core";
|
8
9
|
export declare abstract class CubeMatrixBase {
|
@@ -12,8 +13,8 @@ export declare abstract class CubeMatrixBase {
|
|
12
13
|
abstract table: CubeMatrixComponent;
|
13
14
|
seriesTotalLabel?: string;
|
14
15
|
xAxisTotalLabel?: string;
|
15
|
-
indexAt?:
|
16
|
-
placeAt?:
|
16
|
+
indexAt?: AxisType;
|
17
|
+
placeAt?: AxisPlace;
|
17
18
|
loading: boolean;
|
18
19
|
private _axes;
|
19
20
|
private _originalAxes;
|