@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
@@ -2,59 +2,62 @@ import { __decorate } from "tslib";
|
|
2
2
|
import { Component } from "@angular/core";
|
3
3
|
import { Validators } from "@angular/forms";
|
4
4
|
import { BizDoc } from "../../../core/decorators";
|
5
|
-
import {
|
5
|
+
import { DesignerCubeElementComponent } from "../designer.base";
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
-
import * as i1 from "@angular/
|
8
|
-
import * as i2 from "
|
9
|
-
import * as i3 from "@angular/
|
7
|
+
import * as i1 from "@angular/common";
|
8
|
+
import * as i2 from "@angular/forms";
|
9
|
+
import * as i3 from "@angular/material/radio";
|
10
10
|
import * as i4 from "@angular/material/core";
|
11
11
|
import * as i5 from "@angular/material/form-field";
|
12
12
|
import * as i6 from "@angular/material/select";
|
13
|
-
import * as i7 from "../../../
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
super();
|
19
|
-
this._fb = _fb;
|
20
|
-
this._session = _session;
|
13
|
+
import * as i7 from "../../../core/pipes/translate.pipe";
|
14
|
+
let UsageReportDesignComponent = class UsageReportDesignComponent extends DesignerCubeElementComponent {
|
15
|
+
constructor() {
|
16
|
+
super(...arguments);
|
17
|
+
this.type = this._fb.control(null);
|
21
18
|
this.form = this._fb.group({
|
22
19
|
cube: null,
|
20
|
+
series: this._fb.control(null, Validators.required),
|
23
21
|
xAxis: this._fb.control(null, Validators.required),
|
24
|
-
series: null,
|
25
22
|
indices: null,
|
26
23
|
filters: this._fb.group({}),
|
27
24
|
chartType: null,
|
25
|
+
collapse: false,
|
28
26
|
scope: null
|
29
27
|
});
|
30
|
-
this.cubes = this._session.profile.cubes;
|
31
28
|
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
36
|
-
cubeSelected(evt) {
|
37
|
-
this.selectedCube = evt.value;
|
38
|
-
this.form.get('cube').setValue(evt.value.name);
|
29
|
+
typechange(evt) {
|
30
|
+
const val = evt.value;
|
31
|
+
this._type(val);
|
39
32
|
}
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
case '
|
44
|
-
|
45
|
-
|
46
|
-
|
33
|
+
_type(type) {
|
34
|
+
const { xAxis, chartType } = this.form.controls;
|
35
|
+
switch (type) {
|
36
|
+
case 'Pivot':
|
37
|
+
chartType.setValue(null);
|
38
|
+
xAxis.enable();
|
39
|
+
break;
|
40
|
+
case 'Chart':
|
41
|
+
chartType.setValue('Column');
|
42
|
+
xAxis.disable();
|
43
|
+
break;
|
47
44
|
}
|
48
45
|
}
|
46
|
+
ngOnInit() {
|
47
|
+
const typ = this.model.options?.chartType ? 'Chart' : 'Pivot';
|
48
|
+
this.type.setValue(typ);
|
49
|
+
this._type(typ);
|
50
|
+
super.ngOnInit();
|
51
|
+
}
|
49
52
|
};
|
50
|
-
UsageReportDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: UsageReportDesignComponent, deps:
|
51
|
-
UsageReportDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: UsageReportDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-
|
53
|
+
UsageReportDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: UsageReportDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
54
|
+
UsageReportDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: UsageReportDesignComponent, 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-radio-group [formControl]=\"type\" (change)=\"typechange($event)\">\r\n <mat-radio-button value=\"Chart\">{{'Chart'|translate}}</mat-radio-button>\r\n <mat-radio-button value=\"Pivot\">{{'Pivot'|translate}}</mat-radio-button>\r\n </mat-radio-group>\r\n <mat-form-field *ngIf=\"cubes.length>1\">\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select required (selectionChange)=\"cubeSelected($event)\">\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 <mat-form-field>\r\n <mat-label>{{'Series'|translate}}</mat-label>\r\n <mat-select formControlName=\"series\" multiple (selectionChange)=\"xAxisSelected($event)\">\r\n <mat-option *ngFor=\"let x of cube?.axes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <ng-container [ngSwitch]=\"type.value\">\r\n <ng-container *ngSwitchCase=\"'Pivot'\">\r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" multiple multiple>\r\n <mat-option *ngFor=\"let x of secondaryAxes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n <mat-form-field *ngIf=\"cube?.indices?.length\">\r\n <mat-label>{{'Indices'|translate}}</mat-label>\r\n <mat-select formControlName=\"indices\" multiple>\r\n <mat-option *ngFor=\"let x of cube?.indices\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <ng-container *ngSwitchCase=\"'Chart'\">\r\n <mat-form-field>\r\n <mat-label>{{'ChartType'|translate}}</mat-label>\r\n <mat-select formControlName=\"chartType\">\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=\"Line\">{{'Line'|translate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n <div>\r\n </div>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info></ng-template>\r\n", styles: [""], 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: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { 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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["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: "directive", type: i3.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i3.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "component", type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] });
|
52
55
|
UsageReportDesignComponent = __decorate([
|
53
56
|
BizDoc({ selector: 'usage-report-designer' })
|
54
57
|
], UsageReportDesignComponent);
|
55
58
|
export { UsageReportDesignComponent };
|
56
59
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: UsageReportDesignComponent, decorators: [{
|
57
60
|
type: Component,
|
58
|
-
args: [{ template: "<ng-
|
59
|
-
}]
|
60
|
-
//# sourceMappingURL=data:application/json;base64,
|
61
|
+
args: [{ template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <mat-radio-group [formControl]=\"type\" (change)=\"typechange($event)\">\r\n <mat-radio-button value=\"Chart\">{{'Chart'|translate}}</mat-radio-button>\r\n <mat-radio-button value=\"Pivot\">{{'Pivot'|translate}}</mat-radio-button>\r\n </mat-radio-group>\r\n <mat-form-field *ngIf=\"cubes.length>1\">\r\n <mat-label>{{'Cube'|translate}}</mat-label>\r\n <mat-select required (selectionChange)=\"cubeSelected($event)\">\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 <mat-form-field>\r\n <mat-label>{{'Series'|translate}}</mat-label>\r\n <mat-select formControlName=\"series\" multiple (selectionChange)=\"xAxisSelected($event)\">\r\n <mat-option *ngFor=\"let x of cube?.axes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <ng-container [ngSwitch]=\"type.value\">\r\n <ng-container *ngSwitchCase=\"'Pivot'\">\r\n <mat-form-field>\r\n <mat-label>{{'XAxis'|translate}}</mat-label>\r\n <mat-select formControlName=\"xAxis\" multiple multiple>\r\n <mat-option *ngFor=\"let x of secondaryAxes\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n <mat-form-field *ngIf=\"cube?.indices?.length\">\r\n <mat-label>{{'Indices'|translate}}</mat-label>\r\n <mat-select formControlName=\"indices\" multiple>\r\n <mat-option *ngFor=\"let x of cube?.indices\" [value]=\"x.name\">{{x.title || x.name}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n <ng-container *ngSwitchCase=\"'Chart'\">\r\n <mat-form-field>\r\n <mat-label>{{'ChartType'|translate}}</mat-label>\r\n <mat-select formControlName=\"chartType\">\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=\"Line\">{{'Line'|translate}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n <div>\r\n </div>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info></ng-template>\r\n" }]
|
62
|
+
}] });
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNhZ2UtcmVwb3J0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL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W9uPlxyXG4gICAgICAgICAgICA8bWF0LW9wdGlvbiB2YWx1ZT1cIkxpbmVcIj57eydMaW5lJ3x0cmFuc2xhdGV9fTwvbWF0LW9wdGlvbj5cclxuICAgICAgICAgIDwvbWF0LXNlbGVjdD5cclxuICAgICAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG4gICAgICA8L25nLWNvbnRhaW5lcj5cclxuICAgIDwvbmctY29udGFpbmVyPlxyXG4gIDwvZm9ybT5cclxuICA8ZGl2PlxyXG4gIDwvZGl2PlxyXG48L25nLWNvbnRhaW5lcj5cclxuPCEtLS0tPlxyXG48bmctdGVtcGxhdGUgI2luZm8+PC9uZy10ZW1wbGF0ZT5cclxuIl19
|
@@ -3,30 +3,25 @@ import { Component } from "@angular/core";
|
|
3
3
|
import { BizDoc } from "../../../core/decorators";
|
4
4
|
import { DesignerElementComponent } from "../designer.base";
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
import * as i1 from "@angular/
|
7
|
-
import * as i2 from "
|
8
|
-
import * as i3 from "
|
9
|
-
import * as i4 from "../privileges.component";
|
6
|
+
import * as i1 from "@angular/common";
|
7
|
+
import * as i2 from "@angular/forms";
|
8
|
+
import * as i3 from "../privileges.component";
|
10
9
|
let UtilityDesignComponent = class UtilityDesignComponent extends DesignerElementComponent {
|
11
|
-
constructor(
|
12
|
-
super();
|
13
|
-
this.
|
14
|
-
this._session = _session;
|
15
|
-
this.form = this._fb.group({
|
16
|
-
disabled: false,
|
17
|
-
});
|
10
|
+
constructor() {
|
11
|
+
super(...arguments);
|
12
|
+
this.form = this._fb.group({});
|
18
13
|
}
|
19
14
|
ngOnInit() {
|
20
15
|
}
|
21
16
|
};
|
22
|
-
UtilityDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: UtilityDesignComponent, deps:
|
23
|
-
UtilityDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: UtilityDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-
|
17
|
+
UtilityDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: UtilityDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
18
|
+
UtilityDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: UtilityDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges (change)=\"change.emit()\" [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i3.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"], outputs: ["change"] }] });
|
24
19
|
UtilityDesignComponent = __decorate([
|
25
20
|
BizDoc({ selector: 'utility-designer' })
|
26
21
|
], UtilityDesignComponent);
|
27
22
|
export { UtilityDesignComponent };
|
28
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: UtilityDesignComponent, decorators: [{
|
29
24
|
type: Component,
|
30
|
-
args: [{ template: "<ng-
|
31
|
-
}]
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
25
|
+
args: [{ template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges (change)=\"change.emit()\" [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n" }]
|
26
|
+
}] });
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvdXRpbGl0eS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvZWxlbWVudHMvdXRpbGl0eS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUVsRCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDbEQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7O0lBSS9DLHNCQUFzQixTQUF0QixzQkFBdUIsU0FBUSx3QkFBd0I7OztRQUN6RCxTQUFJLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsRUFDOUIsQ0FBQyxDQUFDO0tBR0o7SUFGQyxRQUFRO0lBQ1IsQ0FBQztDQUNGLENBQUE7bUhBTFksc0JBQXNCO3VHQUF0QixzQkFBc0IsMkVDUG5DLHdUQVVBO0FESGEsc0JBQXNCO0lBRGhDL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CIgW21vZGVsXT1cIm1vZGVsLnByaXZpbGVnZXNcIj48L2JpemRvYy1wcml2aWxlZ2VzPlxyXG48L25nLWNvbnRhaW5lcj5cclxuPCEtLS0tPlxyXG48bmctdGVtcGxhdGUgI2luZm8+XHJcbiAgPGRpdj5cclxuICA8L2Rpdj5cclxuPC9uZy10ZW1wbGF0ZT5cclxuIl19
|
@@ -3,30 +3,25 @@ import { Component } from "@angular/core";
|
|
3
3
|
import { BizDoc } from "../../../core/decorators";
|
4
4
|
import { DesignerElementComponent } from "../designer.base";
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
import * as i1 from "@angular/
|
7
|
-
import * as i2 from "
|
8
|
-
import * as i3 from "
|
9
|
-
import * as i4 from "../privileges.component";
|
6
|
+
import * as i1 from "@angular/common";
|
7
|
+
import * as i2 from "@angular/forms";
|
8
|
+
import * as i3 from "../privileges.component";
|
10
9
|
let ViewDesignComponent = class ViewDesignComponent extends DesignerElementComponent {
|
11
|
-
constructor(
|
12
|
-
super();
|
13
|
-
this.
|
14
|
-
this._session = _session;
|
15
|
-
this.form = this._fb.group({
|
16
|
-
disabled: false,
|
17
|
-
});
|
10
|
+
constructor() {
|
11
|
+
super(...arguments);
|
12
|
+
this.form = this._fb.group({});
|
18
13
|
}
|
19
14
|
ngOnInit() {
|
20
15
|
}
|
21
16
|
};
|
22
|
-
ViewDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ViewDesignComponent, deps:
|
23
|
-
ViewDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: ViewDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-
|
17
|
+
ViewDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ViewDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
18
|
+
ViewDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: ViewDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges (change)=\"change.emit()\" [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i3.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"], outputs: ["change"] }] });
|
24
19
|
ViewDesignComponent = __decorate([
|
25
20
|
BizDoc({ selector: 'view-designer' })
|
26
21
|
], ViewDesignComponent);
|
27
22
|
export { ViewDesignComponent };
|
28
23
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ViewDesignComponent, decorators: [{
|
29
24
|
type: Component,
|
30
|
-
args: [{ template: "<ng-
|
31
|
-
}]
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
25
|
+
args: [{ template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges (change)=\"change.emit()\" [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n" }]
|
26
|
+
}] });
|
27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HJcbjwhLS0tLT5cclxuPG5nLXRlbXBsYXRlICNpbmZvPlxyXG4gIDxkaXY+XHJcbiAgPC9kaXY+XHJcbjwvbmctdGVtcGxhdGU+XHJcbiJdfQ==
|
@@ -3,29 +3,26 @@ import { Component } from "@angular/core";
|
|
3
3
|
import { BizDoc } from "../../../core/decorators";
|
4
4
|
import { DesignerElementComponent } from "../designer.base";
|
5
5
|
import * as i0 from "@angular/core";
|
6
|
-
import * as i1 from "@angular/
|
7
|
-
import * as i2 from "
|
8
|
-
import * as i3 from "
|
6
|
+
import * as i1 from "@angular/common";
|
7
|
+
import * as i2 from "@angular/forms";
|
8
|
+
import * as i3 from "../privileges.component";
|
9
9
|
let WidgetDesignComponent = class WidgetDesignComponent extends DesignerElementComponent {
|
10
|
-
constructor(
|
11
|
-
super();
|
12
|
-
this._fb = _fb;
|
13
|
-
this._session = _session;
|
10
|
+
constructor() {
|
11
|
+
super(...arguments);
|
14
12
|
this.form = this._fb.group({
|
15
|
-
|
13
|
+
name: null,
|
14
|
+
title: null,
|
16
15
|
});
|
17
16
|
}
|
18
|
-
ngOnInit() {
|
19
|
-
}
|
20
17
|
};
|
21
|
-
WidgetDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: WidgetDesignComponent, deps:
|
22
|
-
WidgetDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: WidgetDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<
|
18
|
+
WidgetDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: WidgetDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
19
|
+
WidgetDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: WidgetDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges (change)=\"change.emit()\" [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i3.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"], outputs: ["change"] }] });
|
23
20
|
WidgetDesignComponent = __decorate([
|
24
21
|
BizDoc({ selector: 'widget-designer' })
|
25
22
|
], WidgetDesignComponent);
|
26
23
|
export { WidgetDesignComponent };
|
27
24
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: WidgetDesignComponent, decorators: [{
|
28
25
|
type: Component,
|
29
|
-
args: [{ template: "<
|
30
|
-
}]
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
26
|
+
args: [{ template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n </form>\r\n <bizdoc-privileges (change)=\"change.emit()\" [model]=\"model.privileges\"></bizdoc-privileges>\r\n</ng-container>\r\n<!---->\r\n<ng-template #info>\r\n <div>\r\n </div>\r\n</ng-template>\r\n" }]
|
27
|
+
}] });
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJv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, Output } from "@angular/core";
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
import * as i1 from "@angular/forms";
|
4
|
-
import * as i2 from "
|
5
|
-
import * as i3 from "
|
6
|
-
import * as i4 from "@angular/
|
7
|
-
import * as i5 from "@angular/material/
|
8
|
-
import * as i6 from "@angular/material/
|
4
|
+
import * as i2 from "../../core/session.service";
|
5
|
+
import * as i3 from "../system.service";
|
6
|
+
import * as i4 from "@angular/common";
|
7
|
+
import * as i5 from "@angular/material/list";
|
8
|
+
import * as i6 from "@angular/material/form-field";
|
9
9
|
import * as i7 from "../core/ace.input";
|
10
10
|
import * as i8 from "../../core/pipes/translate.pipe";
|
11
|
-
let roles;
|
12
11
|
export class PrivilegesDesignComponent {
|
13
|
-
constructor(_fb, _service) {
|
12
|
+
constructor(_fb, _session, _service) {
|
14
13
|
this._fb = _fb;
|
14
|
+
this._session = _session;
|
15
15
|
this._service = _service;
|
16
|
+
this.change = new EventEmitter();
|
16
17
|
this.form = this._fb.group({
|
17
18
|
rule: null,
|
18
|
-
roles: [],
|
19
|
+
roles: this._fb.control([]),
|
19
20
|
});
|
20
21
|
}
|
21
22
|
ngOnInit() {
|
22
|
-
this._service.roles().subscribe(r => this.roles = r)
|
23
|
-
|
23
|
+
this._service.roles().subscribe(r => this.roles = r //.concat(this._session.profile.roles)
|
24
|
+
);
|
25
|
+
this.form.patchValue(this.model);
|
24
26
|
this.form.valueChanges.subscribe(v => Object.assign(this.model, v));
|
25
27
|
}
|
28
|
+
rolesChange(evt) {
|
29
|
+
this.form.get('roles').setValue(evt.options.map(o => o.value));
|
30
|
+
}
|
26
31
|
}
|
27
|
-
PrivilegesDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: PrivilegesDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.
|
28
|
-
PrivilegesDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: { model: "model" }, ngImport: i0, template: "<h2 class=\"mat-title\">{{'Privileges'|translate}}</h2>\r\n<
|
32
|
+
PrivilegesDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: PrivilegesDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.SessionService }, { token: i3.SystemService }], target: i0.ɵɵFactoryTarget.Component });
|
33
|
+
PrivilegesDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: { model: "model" }, outputs: { change: "change" }, ngImport: i0, template: "<form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <h2 class=\"mat-title\">{{'Privileges'|translate}}</h2>\r\n <mat-selection-list (selectionChange)=\"rolesChange($event)\" multiple *ngIf=\"roles\">\r\n <mat-list-option *ngFor=\"let r of roles\" [selected]=\"model?.roles?.indexOf(r.name) > -1\" [value]=\"r.name\">{{r.title}}</mat-list-option>\r\n <!--[disabled]=\"false\"-->\r\n </mat-selection-list>\r\n <!--<mat-form-field>\r\n <mat-label>{{'Roles'|translate}}</mat-label>\r\n <mat-select formControlName=\"roles\" multiple>\r\n <mat-option *ngFor=\"let r of roles\" [value]=\"r.name\">{{r.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>-->\r\n <mat-form-field>\r\n <bizdoc-ace-input [placeholder]=\"'Condition'|translate\" formControlName=\"rule\"></bizdoc-ace-input>\r\n <mat-hint> {{ 'ProgrammableExpression'|translate }}</mat-hint>\r\n </mat-form-field>\r\n</form>\r\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.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: i5.MatSelectionList, selector: "mat-selection-list", inputs: ["disableRipple", "color", "compareWith", "disabled", "multiple"], outputs: ["selectionChange"], exportAs: ["matSelectionList"] }, { kind: "component", type: i5.MatListOption, selector: "mat-list-option", inputs: ["disableRipple", "checkboxPosition", "color", "value", "disabled", "selected"], outputs: ["selectedChange"], exportAs: ["matListOption"] }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "component", type: i7.AceInput, selector: "bizdoc-ace-input", inputs: ["params", "placeholder", "required", "disabled", "value"] }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }] });
|
29
34
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: PrivilegesDesignComponent, decorators: [{
|
30
35
|
type: Component,
|
31
|
-
args: [{ selector: 'bizdoc-privileges', template: "<h2 class=\"mat-title\">{{'Privileges'|translate}}</h2>\r\n<
|
32
|
-
}], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.
|
36
|
+
args: [{ selector: 'bizdoc-privileges', template: "<form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <h2 class=\"mat-title\">{{'Privileges'|translate}}</h2>\r\n <mat-selection-list (selectionChange)=\"rolesChange($event)\" multiple *ngIf=\"roles\">\r\n <mat-list-option *ngFor=\"let r of roles\" [selected]=\"model?.roles?.indexOf(r.name) > -1\" [value]=\"r.name\">{{r.title}}</mat-list-option>\r\n <!--[disabled]=\"false\"-->\r\n </mat-selection-list>\r\n <!--<mat-form-field>\r\n <mat-label>{{'Roles'|translate}}</mat-label>\r\n <mat-select formControlName=\"roles\" multiple>\r\n <mat-option *ngFor=\"let r of roles\" [value]=\"r.name\">{{r.title}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>-->\r\n <mat-form-field>\r\n <bizdoc-ace-input [placeholder]=\"'Condition'|translate\" formControlName=\"rule\"></bizdoc-ace-input>\r\n <mat-hint> {{ 'ProgrammableExpression'|translate }}</mat-hint>\r\n </mat-form-field>\r\n</form>\r\n" }]
|
37
|
+
}], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.SessionService }, { type: i3.SystemService }]; }, propDecorators: { model: [{
|
33
38
|
type: Input
|
39
|
+
}], change: [{
|
40
|
+
type: Output
|
34
41
|
}] } });
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmlsZWdlcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvcHJpdmlsZWdlcy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2NvbmZpZ3VyYXRpb24tZGVzaWduZXIvcHJpdmlsZWdlcy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQVUs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