@bizdoc/core 1.15.2 → 1.15.5
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 +6 -8
- package/esm2020/lib/admin/configuration-designer/designer-element.component.mjs +9 -7
- package/esm2020/lib/admin/configuration-designer/designer.base.mjs +69 -5
- package/esm2020/lib/admin/configuration-designer/designer.component.mjs +17 -12
- package/esm2020/lib/admin/configuration-designer/elements/action.component.mjs +14 -15
- package/esm2020/lib/admin/configuration-designer/elements/analysis-view.component.mjs +49 -0
- package/esm2020/lib/admin/configuration-designer/elements/analysis-widget.component.mjs +18 -42
- package/esm2020/lib/admin/configuration-designer/elements/anomaly-rule.component.mjs +10 -15
- package/esm2020/lib/admin/configuration-designer/elements/box-form.component.mjs +10 -15
- package/esm2020/lib/admin/configuration-designer/elements/cube-view.component.mjs +18 -28
- package/esm2020/lib/admin/configuration-designer/elements/cube.component.mjs +131 -15
- package/esm2020/lib/admin/configuration-designer/elements/documents-report.component.mjs +15 -34
- package/esm2020/lib/admin/configuration-designer/elements/documents-widget.component.mjs +24 -34
- package/esm2020/lib/admin/configuration-designer/elements/explore-view.component.mjs +18 -27
- package/esm2020/lib/admin/configuration-designer/elements/folder.component.mjs +15 -16
- package/esm2020/lib/admin/configuration-designer/elements/form.component.mjs +23 -16
- package/esm2020/lib/admin/configuration-designer/elements/guide.component.mjs +30 -15
- package/esm2020/lib/admin/configuration-designer/elements/matrix-view.component.mjs +18 -46
- package/esm2020/lib/admin/configuration-designer/elements/parallel-view.component.mjs +18 -35
- package/esm2020/lib/admin/configuration-designer/elements/performance-widget.component.mjs +15 -29
- package/esm2020/lib/admin/configuration-designer/elements/pivot-view.component.mjs +17 -35
- package/esm2020/lib/admin/configuration-designer/elements/report.component.mjs +12 -14
- package/esm2020/lib/admin/configuration-designer/elements/return-to-role-action.component.mjs +38 -0
- package/esm2020/lib/admin/configuration-designer/elements/role.component.mjs +14 -15
- package/esm2020/lib/admin/configuration-designer/elements/rule.component.mjs +9 -14
- package/esm2020/lib/admin/configuration-designer/elements/state.component.mjs +30 -0
- package/esm2020/lib/admin/configuration-designer/elements/sum-view.component.mjs +17 -37
- package/esm2020/lib/admin/configuration-designer/elements/tasks-report.component.mjs +19 -42
- package/esm2020/lib/admin/configuration-designer/elements/type.component.mjs +13 -16
- package/esm2020/lib/admin/configuration-designer/elements/usage-report.component.mjs +36 -33
- package/esm2020/lib/admin/configuration-designer/elements/utility.component.mjs +11 -16
- package/esm2020/lib/admin/configuration-designer/elements/view.component.mjs +11 -16
- package/esm2020/lib/admin/configuration-designer/elements/widget.component.mjs +12 -15
- package/esm2020/lib/admin/configuration-designer/privileges.component.mjs +23 -16
- package/esm2020/lib/admin/document-trace/document-trace.component.mjs +4 -4
- package/esm2020/lib/admin/form/form.resolve.service.mjs +7 -7
- package/esm2020/lib/admin/form/workflow/workflow.component.mjs +4 -4
- package/esm2020/lib/admin/patterns/patterns.component.mjs +4 -4
- package/esm2020/lib/admin/system.service.mjs +57 -0
- package/esm2020/lib/core/translations.mjs +43 -6
- package/esm2020/lib/cube/sum/sum.component.mjs +1 -1
- package/esm2020/lib/dashboard/cube/accum-cube.widget.mjs +1 -1
- package/esm2020/lib/dashboard/cube/compare.widget.mjs +1 -1
- package/esm2020/lib/dashboard/cube/cube-analysis.base.mjs +1 -1
- package/esm2020/lib/dashboard/cube/cube-analysis.widget.mjs +1 -1
- package/esm2020/lib/dashboard/cube/documents.widget.mjs +1 -1
- package/esm2020/lib/dashboard/cube/filter/filter.component.mjs +1 -1
- package/esm2020/lib/reports/cube/documents.component.mjs +1 -1
- package/esm2020/lib/reports/cube/grid-documents.component.mjs +1 -1
- package/esm2020/lib/reports/cube/table-documents.component.mjs +1 -1
- package/esm2020/lib/reports/cube/usage-args.component.mjs +1 -1
- package/esm2020/lib/reports/cube/usage-base.mjs +2 -1
- package/esm2020/lib/reports/cube/usage-chart.component.mjs +1 -1
- package/esm2020/lib/reports/cube/usage-pivot.component.mjs +1 -1
- package/esm2020/lib/reports/cube/usage.component.mjs +4 -5
- package/esm2020/lib/reports/tasks/tasks.component.mjs +1 -1
- package/esm2020/lib/system.module.mjs +14 -12
- package/esm2020/lib/views/cube/chart.component.mjs +2 -2
- package/esm2020/lib/views/cube/explore.component.mjs +1 -1
- package/esm2020/lib/views/cube/matrix.component.mjs +1 -1
- package/esm2020/lib/views/cube/parallel.component.mjs +1 -1
- package/esm2020/lib/views/cube/pivot.component.mjs +1 -1
- package/esm2020/lib/views/cube/sum.component.mjs +2 -2
- package/esm2020/lib/views/cube/view.component.mjs +1 -1
- package/fesm2015/bizdoc-core.mjs +890 -827
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +875 -827
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/admin/configuration-designer/designer-element.component.d.ts +3 -2
- package/lib/admin/configuration-designer/designer.base.d.ts +54 -6
- package/lib/admin/configuration-designer/designer.component.d.ts +3 -17
- package/lib/admin/configuration-designer/elements/action.component.d.ts +3 -13
- package/lib/admin/configuration-designer/elements/analysis-view.component.d.ts +19 -0
- package/lib/admin/configuration-designer/elements/analysis-widget.component.d.ts +4 -30
- package/lib/admin/configuration-designer/elements/anomaly-rule.component.d.ts +1 -9
- package/lib/admin/configuration-designer/elements/box-form.component.d.ts +1 -9
- package/lib/admin/configuration-designer/elements/cube-view.component.d.ts +6 -29
- package/lib/admin/configuration-designer/elements/cube.component.d.ts +38 -11
- package/lib/admin/configuration-designer/elements/documents-report.component.d.ts +3 -27
- package/lib/admin/configuration-designer/elements/documents-widget.component.d.ts +8 -25
- package/lib/admin/configuration-designer/elements/explore-view.component.d.ts +6 -26
- package/lib/admin/configuration-designer/elements/folder.component.d.ts +3 -9
- package/lib/admin/configuration-designer/elements/form.component.d.ts +6 -6
- package/lib/admin/configuration-designer/elements/guide.component.d.ts +9 -13
- package/lib/admin/configuration-designer/elements/matrix-view.component.d.ts +5 -33
- package/lib/admin/configuration-designer/elements/parallel-view.component.d.ts +5 -28
- package/lib/admin/configuration-designer/elements/performance-widget.component.d.ts +3 -21
- package/lib/admin/configuration-designer/elements/pivot-view.component.d.ts +5 -25
- package/lib/admin/configuration-designer/elements/report.component.d.ts +2 -7
- package/lib/admin/configuration-designer/elements/return-to-role-action.component.d.ts +18 -0
- package/lib/admin/configuration-designer/elements/role.component.d.ts +3 -10
- package/lib/admin/configuration-designer/elements/rule.component.d.ts +1 -8
- package/lib/admin/configuration-designer/elements/state.component.d.ts +10 -0
- package/lib/admin/configuration-designer/elements/sum-view.component.d.ts +3 -29
- package/lib/admin/configuration-designer/elements/tasks-report.component.d.ts +6 -29
- package/lib/admin/configuration-designer/elements/type.component.d.ts +5 -9
- package/lib/admin/configuration-designer/elements/usage-report.component.d.ts +9 -25
- package/lib/admin/configuration-designer/elements/utility.component.d.ts +2 -13
- package/lib/admin/configuration-designer/elements/view.component.d.ts +1 -9
- package/lib/admin/configuration-designer/elements/widget.component.d.ts +3 -13
- package/lib/admin/configuration-designer/privileges.component.d.ts +11 -6
- package/lib/admin/document-trace/document-trace.component.d.ts +2 -2
- package/lib/admin/form/form.resolve.service.d.ts +3 -3
- package/lib/admin/form/workflow/workflow.component.d.ts +2 -2
- package/lib/admin/patterns/patterns.component.d.ts +2 -2
- package/lib/admin/{form/form.service.d.ts → system.service.d.ts} +9 -5
- package/lib/core/translations.d.ts +41 -0
- package/lib/cube/sum/sum.component.d.ts +2 -1
- package/lib/dashboard/cube/accum-cube.widget.d.ts +2 -2
- package/lib/dashboard/cube/compare.widget.d.ts +7 -1
- package/lib/dashboard/cube/cube-analysis.base.d.ts +3 -3
- package/lib/dashboard/cube/cube-analysis.widget.d.ts +2 -2
- package/lib/dashboard/cube/documents.widget.d.ts +11 -1
- package/lib/dashboard/cube/filter/filter.component.d.ts +2 -2
- package/lib/reports/cube/documents.component.d.ts +2 -3
- package/lib/reports/cube/grid-documents.component.d.ts +2 -2
- package/lib/reports/cube/table-documents.component.d.ts +2 -2
- package/lib/reports/cube/usage-args.component.d.ts +2 -2
- package/lib/reports/cube/usage-base.d.ts +9 -7
- package/lib/reports/cube/usage-chart.component.d.ts +2 -2
- package/lib/reports/cube/usage-pivot.component.d.ts +2 -2
- package/lib/reports/cube/usage.component.d.ts +3 -4
- package/lib/reports/tasks/tasks.component.d.ts +4 -2
- package/lib/system.module.d.ts +59 -57
- package/lib/views/cube/chart.component.d.ts +4 -4
- package/lib/views/cube/explore.component.d.ts +4 -4
- package/lib/views/cube/matrix.component.d.ts +8 -7
- package/lib/views/cube/parallel.component.d.ts +8 -3
- package/lib/views/cube/pivot.component.d.ts +4 -3
- package/lib/views/cube/sum.component.d.ts +5 -3
- package/lib/views/cube/view.component.d.ts +4 -4
- package/package.json +1 -1
- package/esm2020/lib/admin/configuration-designer/elements/chart-view.component.mjs +0 -76
- package/esm2020/lib/admin/form/form.service.mjs +0 -48
- package/lib/admin/configuration-designer/elements/chart-view.component.d.ts +0 -45
@@ -1,32 +1,148 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import {
|
2
|
+
import { moveItemInArray } from "@angular/cdk/drag-drop";
|
3
|
+
import { Component, Inject } from "@angular/core";
|
4
|
+
import { Validators } from "@angular/forms";
|
3
5
|
import { BizDoc } from "../../../core/decorators";
|
4
|
-
import {
|
6
|
+
import { isArray } from "../../../core/functions";
|
7
|
+
import { DesignerElementComponent, DesignerRef } from "../designer.base";
|
5
8
|
import * as i0 from "@angular/core";
|
6
9
|
import * as i1 from "@angular/forms";
|
7
|
-
import * as i2 from "
|
8
|
-
import * as i3 from "
|
9
|
-
import * as i4 from "
|
10
|
+
import * as i2 from "../../system.service";
|
11
|
+
import * as i3 from "../../../core/prompt.service";
|
12
|
+
import * as i4 from "@angular/common";
|
13
|
+
import * as i5 from "@angular/cdk/drag-drop";
|
14
|
+
import * as i6 from "@angular/material/radio";
|
15
|
+
import * as i7 from "@angular/material/core";
|
16
|
+
import * as i8 from "@angular/material/form-field";
|
17
|
+
import * as i9 from "@angular/material/select";
|
18
|
+
import * as i10 from "@angular/material/button";
|
19
|
+
import * as i11 from "@angular/material/input";
|
20
|
+
import * as i12 from "@angular/material/icon";
|
21
|
+
import * as i13 from "../../../core/popup/tooltip.directive";
|
22
|
+
import * as i14 from "../privileges.component";
|
23
|
+
import * as i15 from "../../../core/pipes/translate.pipe";
|
24
|
+
import * as i16 from "../designer.base";
|
10
25
|
let CubeDesignComponent = class CubeDesignComponent extends DesignerElementComponent {
|
11
|
-
constructor(
|
12
|
-
super();
|
13
|
-
this.
|
14
|
-
this.
|
26
|
+
constructor(fb, _service, _ps, ref) {
|
27
|
+
super(fb, ref);
|
28
|
+
this._service = _service;
|
29
|
+
this._ps = _ps;
|
30
|
+
this.views = this._fb.array([]);
|
31
|
+
this.axes = this._fb.array([]);
|
32
|
+
this.indices = this._fb.array([]);
|
33
|
+
this.secondaryAxes = [];
|
15
34
|
this.form = this._fb.group({
|
16
|
-
|
35
|
+
views: this.views,
|
36
|
+
indices: this.indices,
|
37
|
+
axes: this.axes,
|
38
|
+
scope: null
|
17
39
|
});
|
40
|
+
this.types = ref.model.types;
|
41
|
+
}
|
42
|
+
sync() {
|
43
|
+
this._service.synchrinize(this.model.name);
|
18
44
|
}
|
19
45
|
ngOnInit() {
|
46
|
+
this.model.axes.forEach(a => {
|
47
|
+
this.axes.push(this._formaxis(a), { emitEvent: true });
|
48
|
+
});
|
49
|
+
this.model.indices.forEach(i => this.indices.push(this._formindex(i), { emitEvent: true }));
|
50
|
+
this.model.views.forEach((v, i) => {
|
51
|
+
this.views.push(this._formview(v), { emitEvent: true });
|
52
|
+
this._secondaryAxes(i, v.xAxis);
|
53
|
+
});
|
54
|
+
this._service.cube(this.model.name).subscribe(r => this.usage = r);
|
55
|
+
}
|
56
|
+
dropView(event) {
|
57
|
+
moveItemInArray(this.model.views, event.previousIndex, event.currentIndex);
|
58
|
+
moveItemInArray(this.secondaryAxes, event.previousIndex, event.currentIndex);
|
59
|
+
}
|
60
|
+
dropAxis(event) {
|
61
|
+
moveItemInArray(this.model.axes, event.previousIndex, event.currentIndex);
|
62
|
+
}
|
63
|
+
removeAxis(index) {
|
64
|
+
this.axes.removeAt(index);
|
65
|
+
}
|
66
|
+
removeIndex(index) {
|
67
|
+
this.indices.removeAt(index);
|
68
|
+
}
|
69
|
+
removeView(index) {
|
70
|
+
this.secondaryAxes.splice(index, 1);
|
71
|
+
this.views.removeAt(index);
|
72
|
+
}
|
73
|
+
addAxis() {
|
74
|
+
this.axes.push(this._formaxis({}), { emitEvent: false });
|
75
|
+
}
|
76
|
+
addIndex() {
|
77
|
+
this.indices.push(this._formindex({}), { emitEvent: false });
|
78
|
+
}
|
79
|
+
addView() {
|
80
|
+
this.views.push(this._formview({}), { emitEvent: false });
|
81
|
+
}
|
82
|
+
nameOf(axis) { return this.model.axes.filter(a => isArray(axis) ? axis.indexOf(a.name) > -1 : a.name === axis).join(', '); }
|
83
|
+
xAxisSelected(index, evt) {
|
84
|
+
this._secondaryAxes(index, evt.value);
|
85
|
+
}
|
86
|
+
_secondaryAxes(index, axis) {
|
87
|
+
if (!axis)
|
88
|
+
return;
|
89
|
+
this.secondaryAxes[index] = this.model.axes.filter(a => isArray(axis) ? axis.indexOf(a.name) < 0 : axis !== a.name);
|
90
|
+
}
|
91
|
+
_formview(model) {
|
92
|
+
return this._fb.group({
|
93
|
+
name: this._fb.control(model.name),
|
94
|
+
title: model.title,
|
95
|
+
xAxis: this._fb.control(model.xAxis, Validators.required),
|
96
|
+
series: model.series,
|
97
|
+
indices: model.indices,
|
98
|
+
type: model.type,
|
99
|
+
chartType: model.chartType,
|
100
|
+
});
|
101
|
+
}
|
102
|
+
_formaxis(model) {
|
103
|
+
return this._fb.group({
|
104
|
+
name: model.name,
|
105
|
+
title: this._fb.control(model.title, Validators.required),
|
106
|
+
descendentOf: model.descendentOf,
|
107
|
+
dataType: this._fb.control(model.dataType, Validators.required)
|
108
|
+
});
|
109
|
+
}
|
110
|
+
_formindex(model) {
|
111
|
+
return this._fb.group({
|
112
|
+
name: model.name,
|
113
|
+
accumulate: model.accumulate,
|
114
|
+
title: this._fb.control(model.title, Validators.required),
|
115
|
+
});
|
116
|
+
}
|
117
|
+
datatype(name) { return this.types.find(t => t.name == name)?.title; }
|
118
|
+
isAccum(index) {
|
119
|
+
switch (this.model.views[index]?.chartType) {
|
120
|
+
case 'Pie':
|
121
|
+
case 'Doughnut':
|
122
|
+
case 'HalfDoughnut':
|
123
|
+
case 'Funnel':
|
124
|
+
return true;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
isChart(index) {
|
128
|
+
switch (this.model.views[index]?.type) {
|
129
|
+
case 'Chart':
|
130
|
+
case 'Pivot':
|
131
|
+
return true;
|
132
|
+
}
|
20
133
|
}
|
21
134
|
};
|
22
|
-
CubeDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: CubeDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.
|
23
|
-
CubeDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: CubeDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-template *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-template>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i4.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"] }] });
|
135
|
+
CubeDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: CubeDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.SystemService }, { token: i3.PromptService }, { token: DesignerRef }], target: i0.ɵɵFactoryTarget.Component });
|
136
|
+
CubeDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: CubeDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <mat-label>{{'SecurityLevel'|translate}}</mat-label>\r\n <mat-radio-group formControlName=\"scope\">\r\n <mat-radio-button>{{'Global'|translate}}</mat-radio-button>\r\n <mat-radio-button value=\"Positions\">{{'Positions'|translate}}</mat-radio-button>\r\n <mat-radio-button value=\"Patterns\">{{'Patterns'|translate}}</mat-radio-button>\r\n </mat-radio-group>\r\n <!-- Axes -->\r\n <h2 class=\"mat-title\">{{'Axes'|translate}}</h2>\r\n <div formArrayName=\"axes\" class=\"column\" cdkDropList (cdkDropListDropped)=\"dropAxis($event)\">\r\n <div class=\"row\" *ngFor=\"let a of axes.controls; index as index\" [formGroup]=\"a\" cdkDrag cdkDragRootElement=\".drag\">\r\n <mat-icon class=\"drag\">drag_indicator</mat-icon>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n \r\n <mat-form-field>\r\n <mat-label>{{'DataType'|translate}}</mat-label>\r\n <mat-select formControlName=\"dataType\" required>\r\n <mat-option *ngFor=\"let t of types\" [value]=\"t.name\">{{t.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <button mat-icon-button (click)=\"removeAxis(index)\" [bizdocTooltip]=\"'Remove'|translate\"><mat-icon>delete</mat-icon></button>\r\n </div>\r\n </div>\r\n <button mat-icon-button (click)=\"addAxis()\" [bizdocTooltip]=\"'Add'|translate\"><mat-icon>add</mat-icon></button>\r\n <!-- Indices -->\r\n <h2 class=\"mat-title\">{{'Indices'|translate}}</h2>\r\n <div formArrayName=\"indices\" class=\"column\" cdkDropList (cdkDropListDropped)=\"dropAxis($event)\">\r\n <div class=\"row\" *ngFor=\"let a of indices.controls; index as index\" [formGroup]=\"a\" cdkDrag cdkDragRootElement=\".drag\">\r\n <mat-icon class=\"drag\">drag_indicator</mat-icon>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n <button mat-icon-button (click)=\"removeIndex(index)\" [bizdocTooltip]=\"'Remove'|translate\"><mat-icon>delete</mat-icon></button>\r\n </div>\r\n </div>\r\n <button mat-icon-button (click)=\"addIndex()\" [bizdocTooltip]=\"'Add'|translate\"><mat-icon>add</mat-icon></button>\r\n <!-- Views -->\r\n <h2 class=\"mat-title\">{{'Views'|translate}}</h2>\r\n <div formArrayName=\"views\" class=\"column\" cdkDropList (cdkDropListDropped)=\"dropView($event)\">\r\n <div class=\"row\" *ngFor=\"let v of views.controls; index as index\" [formGroup]=\"v\" cdkDrag cdkDragRootElement=\".drag\">\r\n <mat-icon class=\"drag\">drag_indicator</mat-icon>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n \r\n <mat-form-field>\r\n <mat-label>{{'Type'|translate}}</mat-label>\r\n <mat-select formControlName=\"type\">\r\n <mat-option value=\"Chart\">{{'Chart'|translate}}</mat-option>\r\n <mat-option value=\"Pivot\">{{'Pivot'|translate}}</mat-option>\r\n <mat-option value=\"Grid\">{{'Grid'|translate}}</mat-option>\r\n <mat-option value=\"Spreadsheet\">{{'Spreadsheet'|translate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n \r\n <mat-form-field *ngIf=\"isChart(index)\">\r\n <mat-label>{{'ChartType'|translate}}</mat-label>\r\n <mat-select formControlName=\"chartType\">\r\n <mat-option value=\"Pie\">{{'Pie'|translate}}</mat-option>\r\n <mat-option value=\"Column\">{{'Column'|translate}}</mat-option>\r\n <mat-option value=\"Bar\">{{'Bar'|translate}}</mat-option>\r\n <mat-option value=\"Bubble\">{{'Bubble'|translate}}</mat-option>\r\n <mat-option value=\"StackingBar\">{{'StackingBar'|translate}}</mat-option>\r\n <mat-option value=\"StackingBar100\">{{'StackingBar100'|translate}}</mat-option>\r\n <mat-option value=\"Line\">{{'Line'|translate}}</mat-option>\r\n <mat-option value=\"Spline\">{{'Spline'|translate}}</mat-option>\r\n <mat-option value=\"Area\">{{'Area'|translate}}</mat-option>\r\n <mat-option value=\"SplineArea\">{{'SplineArea'|translate}}</mat-option>\r\n <mat-option value=\"Doughnut\">{{'Doughnut'|translate}}</mat-option>\r\n <mat-option value=\"HalfDoughnut\">{{'HalfDoughnut'|translate}}</mat-option>\r\n <mat-option value=\"StackingArea\">{{'StackingArea'|translate}}</mat-option>\r\n <mat-option value=\"StackingArea100\">{{'StackingArea100'|translate}}</mat-option>\r\n <mat-option value=\"StackingColumn\">{{'StackingColumn'|translate}}</mat-option>\r\n <mat-option value=\"StackingColumn100\">{{'StackingColumn100'|translate}}</mat-option>\r\n <mat-option value=\"Scatter\">{{'Scatter'|translate}}</mat-option>\r\n <mat-option value=\"Polar\">{{'Polar'|translate}}</mat-option>\r\n <mat-option value=\"Radar\">{{'Radar'|translate}}</mat-option>\r\n <mat-option value=\"StepLine\">{{'StepLine'|translate}}</mat-option>\r\n <mat-option value=\"StepArea\">{{'StepArea'|translate}}</mat-option>\r\n <mat-option value=\"StackingStepArea\">{{'StackingStepArea'|translate}}</mat-option>\r\n <mat-option value=\"StackingLine\">{{'StackingLine'|translate}}</mat-option>\r\n <mat-option value=\"StackingLine100\">{{'StackingLine100'|translate}}</mat-option>\r\n <mat-option value=\"Funnel\">{{'Funnel'|translate}}</mat-option>\r\n <mat-option value=\"Pyramid\">{{'Pyramid'|translate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n \r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" required (selectionChange)=\"xAxisSelected(index, $event)\" multiple>\r\n <mat-option *ngFor=\"let x of model.axes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n \r\n <mat-form-field>\r\n <mat-label>{{'Series'|translate}}</mat-label>\r\n <mat-select formControlName=\"series\" multiple [disabled]=\"isAccum(index)\">\r\n <mat-option *ngFor=\"let x of secondaryAxes[index]\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <button mat-icon-button (click)=\"removeView(index)\" [bizdocTooltip]=\"'Remove'|translate\"><mat-icon>delete</mat-icon></button>\r\n </div>\r\n <button mat-icon-button (click)=\"addView()\" [bizdocTooltip]=\"'Add'|translate\"><mat-icon>add</mat-icon></button>\r\n </div>\r\n </form>\r\n <bizdoc-privileges (change)=\"change.emit()\" [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-container>\r\n<!-- Info -->\r\n<ng-template #info>\r\n <button mat-stroked-button (click)=\"sync()\">{{'Synchronize'|translate}}</button>\r\n <!--<mat-spinner *ngIf=\"false\" diameter=\"20\"></mat-spinner>-->\r\n <div class=\"row\">\r\n <div>\r\n <h2 class=\"mat-title\">{{'Axes'|translate}}</h2>\r\n <table class=\"mat-table\">\r\n <tr class=\"mat-row\" *ngFor=\"let a of model.axes\">\r\n <!--<td class=\"mat-cell\">{{a.name}}</td>-->\r\n <td class=\"mat-cell\">{{a.title}}</td>\r\n <td class=\"mat-cell\">{{datatype(a.dataType)}}</td>\r\n </tr>\r\n </table>\r\n </div>\r\n <div>\r\n <h2 class=\"mat-title\">{{'Indices'|translate}}</h2>\r\n <table class=\"mat-table\">\r\n <tr class=\"mat-row\" *ngFor=\"let a of model.indices\">\r\n <!--<td class=\"mat-cell\">{{a.name}}</td>-->\r\n <td class=\"mat-cell\">{{a.title}}</td>\r\n </tr>\r\n </table>\r\n </div>\r\n <div>\r\n <h2 class=\"mat-title\">{{'Views'|translate}}</h2>\r\n <table class=\"mat-table\">\r\n <tr class=\"mat-row\" *ngFor=\"let v of model.views\">\r\n <td class=\"mat-cell\">{{v.title}}</td>\r\n <td class=\"mat-cell\">({{(v.type||'Chart')|translate}})</td>\r\n </tr>\r\n </table>\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [".flex{flex:1}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "directive", type: i5.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i6.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i6.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "component", type: i7.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i8.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8.MatLabel, selector: "mat-label" }, { kind: "component", type: i9.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i10.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i11.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i12.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i13.TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { kind: "component", type: i14.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"], outputs: ["change"] }, { kind: "pipe", type: i15.TranslatePipe, name: "translate" }] });
|
24
137
|
CubeDesignComponent = __decorate([
|
25
138
|
BizDoc({ selector: 'cube-designer' })
|
26
139
|
], CubeDesignComponent);
|
27
140
|
export { CubeDesignComponent };
|
28
141
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: CubeDesignComponent, decorators: [{
|
29
142
|
type: Component,
|
30
|
-
args: [{ template: "<ng-
|
31
|
-
}], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.
|
32
|
-
|
143
|
+
args: [{ template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <mat-label>{{'SecurityLevel'|translate}}</mat-label>\r\n <mat-radio-group formControlName=\"scope\">\r\n <mat-radio-button>{{'Global'|translate}}</mat-radio-button>\r\n <mat-radio-button value=\"Positions\">{{'Positions'|translate}}</mat-radio-button>\r\n <mat-radio-button value=\"Patterns\">{{'Patterns'|translate}}</mat-radio-button>\r\n </mat-radio-group>\r\n <!-- Axes -->\r\n <h2 class=\"mat-title\">{{'Axes'|translate}}</h2>\r\n <div formArrayName=\"axes\" class=\"column\" cdkDropList (cdkDropListDropped)=\"dropAxis($event)\">\r\n <div class=\"row\" *ngFor=\"let a of axes.controls; index as index\" [formGroup]=\"a\" cdkDrag cdkDragRootElement=\".drag\">\r\n <mat-icon class=\"drag\">drag_indicator</mat-icon>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n \r\n <mat-form-field>\r\n <mat-label>{{'DataType'|translate}}</mat-label>\r\n <mat-select formControlName=\"dataType\" required>\r\n <mat-option *ngFor=\"let t of types\" [value]=\"t.name\">{{t.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <button mat-icon-button (click)=\"removeAxis(index)\" [bizdocTooltip]=\"'Remove'|translate\"><mat-icon>delete</mat-icon></button>\r\n </div>\r\n </div>\r\n <button mat-icon-button (click)=\"addAxis()\" [bizdocTooltip]=\"'Add'|translate\"><mat-icon>add</mat-icon></button>\r\n <!-- Indices -->\r\n <h2 class=\"mat-title\">{{'Indices'|translate}}</h2>\r\n <div formArrayName=\"indices\" class=\"column\" cdkDropList (cdkDropListDropped)=\"dropAxis($event)\">\r\n <div class=\"row\" *ngFor=\"let a of indices.controls; index as index\" [formGroup]=\"a\" cdkDrag cdkDragRootElement=\".drag\">\r\n <mat-icon class=\"drag\">drag_indicator</mat-icon>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n <button mat-icon-button (click)=\"removeIndex(index)\" [bizdocTooltip]=\"'Remove'|translate\"><mat-icon>delete</mat-icon></button>\r\n </div>\r\n </div>\r\n <button mat-icon-button (click)=\"addIndex()\" [bizdocTooltip]=\"'Add'|translate\"><mat-icon>add</mat-icon></button>\r\n <!-- Views -->\r\n <h2 class=\"mat-title\">{{'Views'|translate}}</h2>\r\n <div formArrayName=\"views\" class=\"column\" cdkDropList (cdkDropListDropped)=\"dropView($event)\">\r\n <div class=\"row\" *ngFor=\"let v of views.controls; index as index\" [formGroup]=\"v\" cdkDrag cdkDragRootElement=\".drag\">\r\n <mat-icon class=\"drag\">drag_indicator</mat-icon>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n \r\n <mat-form-field>\r\n <mat-label>{{'Type'|translate}}</mat-label>\r\n <mat-select formControlName=\"type\">\r\n <mat-option value=\"Chart\">{{'Chart'|translate}}</mat-option>\r\n <mat-option value=\"Pivot\">{{'Pivot'|translate}}</mat-option>\r\n <mat-option value=\"Grid\">{{'Grid'|translate}}</mat-option>\r\n <mat-option value=\"Spreadsheet\">{{'Spreadsheet'|translate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n \r\n <mat-form-field *ngIf=\"isChart(index)\">\r\n <mat-label>{{'ChartType'|translate}}</mat-label>\r\n <mat-select formControlName=\"chartType\">\r\n <mat-option value=\"Pie\">{{'Pie'|translate}}</mat-option>\r\n <mat-option value=\"Column\">{{'Column'|translate}}</mat-option>\r\n <mat-option value=\"Bar\">{{'Bar'|translate}}</mat-option>\r\n <mat-option value=\"Bubble\">{{'Bubble'|translate}}</mat-option>\r\n <mat-option value=\"StackingBar\">{{'StackingBar'|translate}}</mat-option>\r\n <mat-option value=\"StackingBar100\">{{'StackingBar100'|translate}}</mat-option>\r\n <mat-option value=\"Line\">{{'Line'|translate}}</mat-option>\r\n <mat-option value=\"Spline\">{{'Spline'|translate}}</mat-option>\r\n <mat-option value=\"Area\">{{'Area'|translate}}</mat-option>\r\n <mat-option value=\"SplineArea\">{{'SplineArea'|translate}}</mat-option>\r\n <mat-option value=\"Doughnut\">{{'Doughnut'|translate}}</mat-option>\r\n <mat-option value=\"HalfDoughnut\">{{'HalfDoughnut'|translate}}</mat-option>\r\n <mat-option value=\"StackingArea\">{{'StackingArea'|translate}}</mat-option>\r\n <mat-option value=\"StackingArea100\">{{'StackingArea100'|translate}}</mat-option>\r\n <mat-option value=\"StackingColumn\">{{'StackingColumn'|translate}}</mat-option>\r\n <mat-option value=\"StackingColumn100\">{{'StackingColumn100'|translate}}</mat-option>\r\n <mat-option value=\"Scatter\">{{'Scatter'|translate}}</mat-option>\r\n <mat-option value=\"Polar\">{{'Polar'|translate}}</mat-option>\r\n <mat-option value=\"Radar\">{{'Radar'|translate}}</mat-option>\r\n <mat-option value=\"StepLine\">{{'StepLine'|translate}}</mat-option>\r\n <mat-option value=\"StepArea\">{{'StepArea'|translate}}</mat-option>\r\n <mat-option value=\"StackingStepArea\">{{'StackingStepArea'|translate}}</mat-option>\r\n <mat-option value=\"StackingLine\">{{'StackingLine'|translate}}</mat-option>\r\n <mat-option value=\"StackingLine100\">{{'StackingLine100'|translate}}</mat-option>\r\n <mat-option value=\"Funnel\">{{'Funnel'|translate}}</mat-option>\r\n <mat-option value=\"Pyramid\">{{'Pyramid'|translate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n \r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" required (selectionChange)=\"xAxisSelected(index, $event)\" multiple>\r\n <mat-option *ngFor=\"let x of model.axes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n \r\n <mat-form-field>\r\n <mat-label>{{'Series'|translate}}</mat-label>\r\n <mat-select formControlName=\"series\" multiple [disabled]=\"isAccum(index)\">\r\n <mat-option *ngFor=\"let x of secondaryAxes[index]\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <button mat-icon-button (click)=\"removeView(index)\" [bizdocTooltip]=\"'Remove'|translate\"><mat-icon>delete</mat-icon></button>\r\n </div>\r\n <button mat-icon-button (click)=\"addView()\" [bizdocTooltip]=\"'Add'|translate\"><mat-icon>add</mat-icon></button>\r\n </div>\r\n </form>\r\n <bizdoc-privileges (change)=\"change.emit()\" [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-container>\r\n<!-- Info -->\r\n<ng-template #info>\r\n <button mat-stroked-button (click)=\"sync()\">{{'Synchronize'|translate}}</button>\r\n <!--<mat-spinner *ngIf=\"false\" diameter=\"20\"></mat-spinner>-->\r\n <div class=\"row\">\r\n <div>\r\n <h2 class=\"mat-title\">{{'Axes'|translate}}</h2>\r\n <table class=\"mat-table\">\r\n <tr class=\"mat-row\" *ngFor=\"let a of model.axes\">\r\n <!--<td class=\"mat-cell\">{{a.name}}</td>-->\r\n <td class=\"mat-cell\">{{a.title}}</td>\r\n <td class=\"mat-cell\">{{datatype(a.dataType)}}</td>\r\n </tr>\r\n </table>\r\n </div>\r\n <div>\r\n <h2 class=\"mat-title\">{{'Indices'|translate}}</h2>\r\n <table class=\"mat-table\">\r\n <tr class=\"mat-row\" *ngFor=\"let a of model.indices\">\r\n <!--<td class=\"mat-cell\">{{a.name}}</td>-->\r\n <td class=\"mat-cell\">{{a.title}}</td>\r\n </tr>\r\n </table>\r\n </div>\r\n <div>\r\n <h2 class=\"mat-title\">{{'Views'|translate}}</h2>\r\n <table class=\"mat-table\">\r\n <tr class=\"mat-row\" *ngFor=\"let v of model.views\">\r\n <td class=\"mat-cell\">{{v.title}}</td>\r\n <td class=\"mat-cell\">({{(v.type||'Chart')|translate}})</td>\r\n </tr>\r\n </table>\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [".flex{flex:1}\n"] }]
|
144
|
+
}], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.SystemService }, { type: i3.PromptService }, { type: i16.DesignerRef, decorators: [{
|
145
|
+
type: Inject,
|
146
|
+
args: [DesignerRef]
|
147
|
+
}] }]; } });
|
148
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3ViZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZ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l0bGV9fTwvdGQ+XHJcbiAgICAgICAgPC90cj5cclxuICAgICAgPC90YWJsZT5cclxuICAgIDwvZGl2PlxyXG4gICAgPGRpdj5cclxuICAgICAgPGgyIGNsYXNzPVwibWF0LXRpdGxlXCI+e3snVmlld3MnfHRyYW5zbGF0ZX19PC9oMj5cclxuICAgICAgPHRhYmxlIGNsYXNzPVwibWF0LXRhYmxlXCI+XHJcbiAgICAgICAgPHRyIGNsYXNzPVwibWF0LXJvd1wiICpuZ0Zvcj1cImxldCB2IG9mIG1vZGVsLnZpZXdzXCI+XHJcbiAgICAgICAgICA8dGQgY2xhc3M9XCJtYXQtY2VsbFwiPnt7di50aXRsZX19PC90ZD5cclxuICAgICAgICAgIDx0ZCBjbGFzcz1cIm1hdC1jZWxsXCI+KHt7KHYudHlwZXx8J0NoYXJ0Jyl8dHJhbnNsYXRlfX0pPC90ZD5cclxuICAgICAgICA8L3RyPlxyXG4gICAgICA8L3RhYmxlPlxyXG4gICAgPC9kaXY+XHJcbiAgPC9kaXY+XHJcbjwvbmctdGVtcGxhdGU+XHJcbiJdfQ==
|
@@ -1,51 +1,32 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { Component } from "@angular/core";
|
3
|
-
import { Validators } from "@angular/forms";
|
4
3
|
import { BizDoc } from "../../../core/decorators";
|
5
|
-
import {
|
4
|
+
import { DesignerCubeElementComponent } from "../designer.base";
|
6
5
|
import * as i0 from "@angular/core";
|
7
|
-
import * as i1 from "@angular/
|
8
|
-
import * as i2 from "
|
9
|
-
import * as i3 from "@angular/
|
10
|
-
import * as i4 from "@angular/material/
|
11
|
-
import * as i5 from "@angular/material/
|
12
|
-
import * as i6 from "
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
let DocumentsReportDesignComponent = class DocumentsReportDesignComponent extends DesignerElementComponent {
|
17
|
-
constructor(_fb, _session) {
|
18
|
-
super();
|
19
|
-
this._fb = _fb;
|
20
|
-
this._session = _session;
|
6
|
+
import * as i1 from "@angular/common";
|
7
|
+
import * as i2 from "@angular/forms";
|
8
|
+
import * as i3 from "@angular/material/core";
|
9
|
+
import * as i4 from "@angular/material/form-field";
|
10
|
+
import * as i5 from "@angular/material/select";
|
11
|
+
import * as i6 from "../../../core/pipes/translate.pipe";
|
12
|
+
let DocumentsReportDesignComponent = class DocumentsReportDesignComponent extends DesignerCubeElementComponent {
|
13
|
+
constructor() {
|
14
|
+
super(...arguments);
|
21
15
|
this.form = this._fb.group({
|
22
16
|
cube: null,
|
23
|
-
xAxis: this._fb.control(null, Validators.required),
|
24
|
-
series: null,
|
25
|
-
indices: null,
|
26
17
|
filters: this._fb.group({}),
|
27
|
-
chartType: null,
|
28
18
|
scope: null
|
29
19
|
});
|
30
|
-
this.cubes = this._session.profile.cubes;
|
31
|
-
}
|
32
|
-
ngOnInit() {
|
33
|
-
this.selectedCube = !this.model.options.cube ? this._session.profile.cubes[0] :
|
34
|
-
this._session.profile.cubes.find(c => c.name === this.model.options.cube);
|
35
|
-
}
|
36
|
-
cubeSelected(evt) {
|
37
|
-
this.selectedCube = evt.value;
|
38
|
-
this.form.get('cube').setValue(evt.value.name);
|
39
20
|
}
|
40
21
|
};
|
41
|
-
DocumentsReportDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: DocumentsReportDesignComponent, deps:
|
42
|
-
DocumentsReportDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: DocumentsReportDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-
|
22
|
+
DocumentsReportDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: DocumentsReportDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
23
|
+
DocumentsReportDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: DocumentsReportDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <mat-form-field *ngIf=\"cubes.length>1\">\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select formControlName=\"cube\">\r\n <mat-option *ngFor=\"let c of cubes\" [value]=\"c\">{{c.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info></ng-template>\r\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i3.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] });
|
43
24
|
DocumentsReportDesignComponent = __decorate([
|
44
25
|
BizDoc({ selector: 'documents-report-designer' })
|
45
26
|
], DocumentsReportDesignComponent);
|
46
27
|
export { DocumentsReportDesignComponent };
|
47
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: DocumentsReportDesignComponent, decorators: [{
|
48
29
|
type: Component,
|
49
|
-
args: [{ template: "<ng-
|
50
|
-
}]
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
30
|
+
args: [{ template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <mat-form-field *ngIf=\"cubes.length>1\">\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select formControlName=\"cube\">\r\n <mat-option *ngFor=\"let c of cubes\" [value]=\"c\">{{c.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info></ng-template>\r\n" }]
|
31
|
+
}] });
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnRzLXJlcG9ydC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvZG9jdW1lbnRzLXJlcG9ydC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvZG9jdW1lbnRzLXJlcG9ydC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUU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25nLXRlbXBsYXRlPlxyXG4iXX0=
|
@@ -1,50 +1,40 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { Component } from "@angular/core";
|
3
|
-
import { Validators } from "@angular/forms";
|
2
|
+
import { Component, Inject } from "@angular/core";
|
4
3
|
import { BizDoc } from "../../../core/decorators";
|
5
|
-
import {
|
4
|
+
import { DesignerCubeElementComponent, DesignerRef } from "../designer.base";
|
6
5
|
import * as i0 from "@angular/core";
|
7
6
|
import * as i1 from "@angular/forms";
|
8
|
-
import * as i2 from "
|
9
|
-
import * as i3 from "@angular/
|
10
|
-
import * as i4 from "@angular/material/
|
11
|
-
import * as i5 from "@angular/material/
|
12
|
-
import * as i6 from "
|
13
|
-
import * as i7 from "
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
constructor(_fb, _session) {
|
18
|
-
super();
|
19
|
-
this._fb = _fb;
|
20
|
-
this._session = _session;
|
7
|
+
import * as i2 from "@angular/common";
|
8
|
+
import * as i3 from "@angular/material/core";
|
9
|
+
import * as i4 from "@angular/material/form-field";
|
10
|
+
import * as i5 from "@angular/material/select";
|
11
|
+
import * as i6 from "../../../core/pipes/translate.pipe";
|
12
|
+
import * as i7 from "../designer.base";
|
13
|
+
let DocumentsWidgetDesignComponent = class DocumentsWidgetDesignComponent extends DesignerCubeElementComponent {
|
14
|
+
constructor(fb, ref) {
|
15
|
+
super(fb, ref);
|
21
16
|
this.form = this._fb.group({
|
22
17
|
cube: null,
|
23
|
-
xAxis: this._fb.control(null, Validators.required),
|
24
|
-
series: null,
|
25
|
-
indices: null,
|
26
18
|
filters: this._fb.group({}),
|
27
|
-
|
19
|
+
states: null,
|
20
|
+
scope: null,
|
21
|
+
take: null,
|
22
|
+
pending: null
|
28
23
|
});
|
29
|
-
this.
|
30
|
-
}
|
31
|
-
ngOnInit() {
|
32
|
-
this.selectedCube = !this.model.options.cube ? this._session.profile.cubes[0] :
|
33
|
-
this._session.profile.cubes.find(c => c.name === this.model.options.cube);
|
34
|
-
}
|
35
|
-
cubeSelected(evt) {
|
36
|
-
this.selectedCube = evt.value;
|
37
|
-
this.form.get('cube').setValue(evt.value.name);
|
24
|
+
this.states = this._ref.model.states;
|
38
25
|
}
|
39
26
|
};
|
40
|
-
DocumentsWidgetDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: DocumentsWidgetDesignComponent, deps: [{ token: i1.FormBuilder }, { token:
|
41
|
-
DocumentsWidgetDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: DocumentsWidgetDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-
|
27
|
+
DocumentsWidgetDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: DocumentsWidgetDesignComponent, deps: [{ token: i1.FormBuilder }, { token: DesignerRef }], target: i0.ɵɵFactoryTarget.Component });
|
28
|
+
DocumentsWidgetDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: DocumentsWidgetDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <mat-form-field *ngIf=\"cubes.length>1\">\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select formControlName=\"cube\">\r\n <mat-option *ngFor=\"let c of cubes\" [value]=\"c\">{{c.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info></ng-template>\r\n", dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i3.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] });
|
42
29
|
DocumentsWidgetDesignComponent = __decorate([
|
43
30
|
BizDoc({ selector: 'documents-widget-designer' })
|
44
31
|
], DocumentsWidgetDesignComponent);
|
45
32
|
export { DocumentsWidgetDesignComponent };
|
46
33
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: DocumentsWidgetDesignComponent, decorators: [{
|
47
34
|
type: Component,
|
48
|
-
args: [{ template: "<ng-
|
49
|
-
}], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type:
|
50
|
-
|
35
|
+
args: [{ template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <mat-form-field *ngIf=\"cubes.length>1\">\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select formControlName=\"cube\">\r\n <mat-option *ngFor=\"let c of cubes\" [value]=\"c\">{{c.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info></ng-template>\r\n" }]
|
36
|
+
}], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i7.DesignerRef, decorators: [{
|
37
|
+
type: Inject,
|
38
|
+
args: [DesignerRef]
|
39
|
+
}] }]; } });
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jdW1lbnRzLXdpZGdldC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvZG9jdW1lbnRzLXdpZGdldC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvZG9jdW1lbnRzLXdpZGdldC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFFMUQsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBRWxELE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxXQUFXLEVBQWdCLE1BQU0sa0JBQWtCLENBQUM7Ozs7Ozs7OztJQUk5RSw4QkFBOEIsU0FBOUIsOEJBQStCLFNBQVEsNEJBQXdEO0lBVTFHLFlBQVksRUFBZSxFQUF1QixHQUFnQjtRQUNoRSxLQUFLLENBQUMsRUFBRSxFQUFFLEdBQUcsQ0FBQyxDQUFDO1FBVlIsU0FBSSxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUF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