@bizdoc/core 1.15.3 → 1.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/bizdoc-schema.json +6 -8
- package/assets/system/icons.json +1 -0
- package/esm2020/lib/admin/configuration-designer/designer-element.component.mjs +9 -7
- package/esm2020/lib/admin/configuration-designer/designer.base.mjs +109 -4
- package/esm2020/lib/admin/configuration-designer/designer.component.mjs +115 -46
- package/esm2020/lib/admin/configuration-designer/elements/action.component.mjs +12 -20
- package/esm2020/lib/admin/configuration-designer/elements/analysis-view.component.mjs +48 -0
- package/esm2020/lib/admin/configuration-designer/elements/analysis-widget.component.mjs +16 -39
- package/esm2020/lib/admin/configuration-designer/elements/anomaly-rule.component.mjs +10 -15
- package/esm2020/lib/admin/configuration-designer/elements/box-form.component.mjs +14 -15
- package/esm2020/lib/admin/configuration-designer/elements/configuration-datasource.component.mjs +61 -0
- package/esm2020/lib/admin/configuration-designer/elements/cube-view.component.mjs +18 -28
- package/esm2020/lib/admin/configuration-designer/elements/cube.component.mjs +142 -17
- 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 +16 -19
- package/esm2020/lib/admin/configuration-designer/elements/form.component.mjs +58 -25
- package/esm2020/lib/admin/configuration-designer/elements/guide.component.mjs +34 -19
- package/esm2020/lib/admin/configuration-designer/elements/matrix-view.component.mjs +45 -41
- package/esm2020/lib/admin/configuration-designer/elements/parallel-view.component.mjs +18 -34
- 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 -34
- package/esm2020/lib/admin/configuration-designer/elements/report.component.mjs +12 -18
- 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 +18 -18
- package/esm2020/lib/admin/configuration-designer/elements/rule.component.mjs +9 -18
- package/esm2020/lib/admin/configuration-designer/elements/state.component.mjs +28 -0
- package/esm2020/lib/admin/configuration-designer/elements/sum-view.component.mjs +17 -35
- package/esm2020/lib/admin/configuration-designer/elements/tasks-report.component.mjs +19 -42
- package/esm2020/lib/admin/configuration-designer/elements/type.component.mjs +15 -19
- package/esm2020/lib/admin/configuration-designer/elements/usage-report.component.mjs +37 -33
- package/esm2020/lib/admin/configuration-designer/elements/utility.component.mjs +12 -18
- package/esm2020/lib/admin/configuration-designer/elements/view.component.mjs +13 -16
- package/esm2020/lib/admin/configuration-designer/elements/widget.component.mjs +10 -20
- package/esm2020/lib/admin/configuration-designer/icon-picker.component.mjs +162 -0
- package/esm2020/lib/admin/configuration-designer/privileges.component.mjs +31 -16
- package/esm2020/lib/admin/core/color-picker.input.mjs +9 -33
- package/esm2020/lib/admin/document-trace/document-trace.component.mjs +4 -4
- package/esm2020/lib/admin/form/designer/designer.component.mjs +140 -18
- package/esm2020/lib/admin/form/form.resolve.service.mjs +7 -7
- package/esm2020/lib/admin/form/workflow/workflow.component.mjs +9 -9
- package/esm2020/lib/admin/patterns/patterns.component.mjs +4 -4
- package/esm2020/lib/admin/system.service.mjs +57 -0
- package/esm2020/lib/compose/box/box.component.mjs +43 -0
- package/esm2020/lib/compose/document.component.mjs +2 -2
- package/esm2020/lib/compose/form-ref.mjs +7 -2
- package/esm2020/lib/compose/form-selector/form-selector.sheet.mjs +3 -3
- package/esm2020/lib/compose/form.component.mjs +2 -2
- package/esm2020/lib/compose/new-menu.component.mjs +3 -3
- package/esm2020/lib/compose/version-compare/version-compare.component.mjs +2 -2
- package/esm2020/lib/core/functions.mjs +6 -1
- package/esm2020/lib/core/mailbox.service.mjs +2 -2
- package/esm2020/lib/core/models.mjs +1 -1
- package/esm2020/lib/core/translations.mjs +44 -6
- package/esm2020/lib/cube/filter/filter.component.mjs +3 -3
- package/esm2020/lib/cube/matrix/table.component.mjs +1 -1
- 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/shared.module.mjs +5 -4
- package/esm2020/lib/system.module.mjs +18 -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 +1 -1
- package/esm2020/lib/views/cube/view.component.mjs +1 -1
- package/fesm2015/bizdoc-core.mjs +1457 -937
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +1437 -939
- 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 +111 -16
- package/lib/admin/configuration-designer/designer.component.d.ts +15 -18
- package/lib/admin/configuration-designer/elements/action.component.d.ts +2 -16
- 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 +3 -13
- package/lib/admin/configuration-designer/elements/configuration-datasource.component.d.ts +26 -0
- package/lib/admin/configuration-designer/elements/cube-view.component.d.ts +6 -29
- package/lib/admin/configuration-designer/elements/cube.component.d.ts +36 -13
- 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 +2 -14
- package/lib/admin/configuration-designer/elements/form.component.d.ts +8 -13
- package/lib/admin/configuration-designer/elements/guide.component.d.ts +7 -16
- package/lib/admin/configuration-designer/elements/matrix-view.component.d.ts +10 -32
- 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 -15
- 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 -15
- package/lib/admin/configuration-designer/elements/rule.component.d.ts +2 -13
- package/lib/admin/configuration-designer/elements/state.component.d.ts +7 -0
- package/lib/admin/configuration-designer/elements/sum-view.component.d.ts +4 -29
- package/lib/admin/configuration-designer/elements/tasks-report.component.d.ts +6 -29
- package/lib/admin/configuration-designer/elements/type.component.d.ts +2 -16
- package/lib/admin/configuration-designer/elements/usage-report.component.d.ts +9 -25
- package/lib/admin/configuration-designer/elements/utility.component.d.ts +2 -15
- package/lib/admin/configuration-designer/elements/view.component.d.ts +3 -13
- package/lib/admin/configuration-designer/elements/widget.component.d.ts +2 -16
- package/lib/admin/configuration-designer/icon-picker.component.d.ts +67 -0
- package/lib/admin/configuration-designer/privileges.component.d.ts +11 -7
- package/lib/admin/core/color-picker.input.d.ts +3 -6
- package/lib/admin/document-trace/document-trace.component.d.ts +2 -2
- package/lib/admin/form/designer/designer.component.d.ts +59 -19
- package/lib/admin/form/form.resolve.service.d.ts +3 -3
- package/lib/admin/form/workflow/workflow.component.d.ts +3 -3
- 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/compose/box/box.component.d.ts +17 -0
- package/lib/compose/form-ref.d.ts +6 -2
- package/lib/core/models.d.ts +4 -1
- package/lib/core/translations.d.ts +42 -0
- package/lib/cube/matrix/table.component.d.ts +0 -1
- 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 +4 -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/shared.module.d.ts +183 -182
- package/lib/system.module.d.ts +61 -57
- package/lib/views/cube/chart.component.d.ts +5 -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,43 +1,34 @@
|
|
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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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 ExploreViewDesignComponent = class ExploreViewDesignComponent extends DesignerCubeElementComponent {
|
13
|
+
constructor() {
|
14
|
+
super(...arguments);
|
14
15
|
this.form = this._fb.group({
|
15
16
|
cube: null,
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
filters: this._fb.group({}),
|
17
|
+
filters: null,
|
18
|
+
aggregate: null,
|
19
|
+
pageSize: null,
|
20
20
|
scope: null
|
21
21
|
});
|
22
|
-
this.cubes = this._session.profile.cubes;
|
23
|
-
}
|
24
|
-
ngOnInit() {
|
25
|
-
this.cube = !this.model.options.cube ? this._session.profile.cubes[0] :
|
26
|
-
this._session.profile.cubes.find(c => c.name === this.model.options.cube);
|
27
|
-
}
|
28
|
-
cubeSelected(evt) {
|
29
|
-
this.cube = evt.value;
|
30
|
-
this.form.get('cube').setValue(evt.value.name);
|
31
22
|
}
|
32
23
|
};
|
33
|
-
ExploreViewDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ExploreViewDesignComponent, deps:
|
34
|
-
ExploreViewDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: ExploreViewDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<form autocomplete=\"off\" [formGroup]=\"form\">\r\n</form>\r\n", dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type:
|
24
|
+
ExploreViewDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ExploreViewDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
25
|
+
ExploreViewDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: ExploreViewDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<form *ngIf=\"editMode; else info\" 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 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>{{'Aggregate'|translate}}</mat-label>\r\n <mat-select formControlName=\"aggregate\" multiple>\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</form>\r\n<ng-template #info>\r\n <dl>\r\n </dl>\r\n</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" }] });
|
35
26
|
ExploreViewDesignComponent = __decorate([
|
36
27
|
BizDoc({ selector: 'explore-view-designer' })
|
37
28
|
], ExploreViewDesignComponent);
|
38
29
|
export { ExploreViewDesignComponent };
|
39
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: ExploreViewDesignComponent, decorators: [{
|
40
31
|
type: Component,
|
41
|
-
args: [{ template: "<form autocomplete=\"off\" [formGroup]=\"form\">\r\n</form>\r\n" }]
|
42
|
-
}]
|
43
|
-
//# sourceMappingURL=data:application/json;base64,
|
32
|
+
args: [{ template: "<form *ngIf=\"editMode; else info\" 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 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>{{'Aggregate'|translate}}</mat-label>\r\n <mat-select formControlName=\"aggregate\" multiple>\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</form>\r\n<ng-template #info>\r\n <dl>\r\n </dl>\r\n</ng-template>\r\n" }]
|
33
|
+
}] });
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwbG9yZS12aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvYWRtaW4vY29uZmlndXJhdGlvbi1kZXNpZ25lci9lbGVtZW50cy9leHBsb3JlLXZpZXcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9hZG1pbi9jb25maWd1cmF0aW9uLWRlc2lnbmVyL2VsZW1lbnRzL2V4cGxvcmUtdmlldy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFFbEQsT0FBTyxFQUFFLDRCQUE0QixFQ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mFtZT1cImFnZ3JlZ2F0ZVwiIG11bHRpcGxlPlxyXG4gICAgICA8bWF0LW9wdGlvbiAqbmdGb3I9XCJsZXQgeCBvZiBjdWJlPy5heGVzXCIgW3ZhbHVlXT1cIngubmFtZVwiPnt7eC50aXRsZSB8fCB4Lm5hbWV9fTwvbWF0LW9wdGlvbj5cclxuICAgIDwvbWF0LXNlbGVjdD5cclxuICA8L21hdC1mb3JtLWZpZWxkPlxyXG48L2Zvcm0+XHJcbjxuZy10ZW1wbGF0ZSAjaW5mbz5cclxuICA8ZGw+XHJcbiAgPC9kbD5cclxuPC9uZy10ZW1wbGF0ZT5cclxuIl19
|
@@ -1,32 +1,29 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { Component } from "@angular/core";
|
3
3
|
import { BizDoc } from "../../../core/decorators";
|
4
|
-
import {
|
4
|
+
import { DesignerTypeElementComponent } 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 "@angular/
|
9
|
-
import * as i4 from "
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
this._session = _session;
|
15
|
-
this.form = this._fb.group({
|
16
|
-
disabled: false,
|
17
|
-
});
|
18
|
-
}
|
6
|
+
import * as i1 from "@angular/common";
|
7
|
+
import * as i2 from "@angular/forms";
|
8
|
+
import * as i3 from "@angular/material/form-field";
|
9
|
+
import * as i4 from "@angular/material/input";
|
10
|
+
import * as i5 from "../icon-picker.component";
|
11
|
+
import * as i6 from "../privileges.component";
|
12
|
+
import * as i7 from "../../../core/pipes/translate.pipe";
|
13
|
+
let FolderDesignComponent = class FolderDesignComponent extends DesignerTypeElementComponent {
|
19
14
|
ngOnInit() {
|
15
|
+
this.form.addControl('icon', this._fb.control(this.model.icon), { emitEvent: false });
|
16
|
+
super.ngOnInit();
|
20
17
|
}
|
21
18
|
};
|
22
|
-
FolderDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: FolderDesignComponent, deps:
|
23
|
-
FolderDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: FolderDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-
|
19
|
+
FolderDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: FolderDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
20
|
+
FolderDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: FolderDesignComponent, 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>\r\n <mat-label>{{'Name'|translate}}</mat-label>\r\n <input matInput formControlName=\"name\" required />\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n <div>\r\n <!--<mat-label>{{'Icon'|translate}}</mat-label>-->\r\n <bizdoc-icon-picker formControlName=\"icon\" required></bizdoc-icon-picker>\r\n </div>\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.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { 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.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.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: i5.IconPickerComponent, selector: "bizdoc-icon-picker", inputs: ["value", "required", "disabled"], outputs: ["valueChanges"] }, { kind: "component", type: i6.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"], outputs: ["change"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] });
|
24
21
|
FolderDesignComponent = __decorate([
|
25
22
|
BizDoc({ selector: 'folder-designer' })
|
26
23
|
], FolderDesignComponent);
|
27
24
|
export { FolderDesignComponent };
|
28
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: FolderDesignComponent, decorators: [{
|
29
26
|
type: Component,
|
30
|
-
args: [{ template: "<ng-
|
31
|
-
}]
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
27
|
+
args: [{ template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <mat-form-field>\r\n <mat-label>{{'Name'|translate}}</mat-label>\r\n <input matInput formControlName=\"name\" required />\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n <div>\r\n <!--<mat-label>{{'Icon'|translate}}</mat-label>-->\r\n <bizdoc-icon-picker formControlName=\"icon\" required></bizdoc-icon-picker>\r\n </div>\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" }]
|
28
|
+
}] });
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9sZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvYWRtaW4vY29uZmlndXJhdGlvbi1kZXNpZ25lci9lbGVtZW50cy9mb2xkZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9hZG1pbi9jb25maWd1cmF0aW9uLWRlc2lnbmVyL2VsZW1lbnRzL2ZvbGRlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUxQyxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDbEQsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7Ozs7OztJ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gICAgPC9kaXY+XHJcbiAgPC9mb3JtPlxyXG4gIDxiaXpkb2MtcHJpdmlsZWdlcyAoY2hhbmdlKT1cImNoYW5nZS5lbWl0KClcIiBbbW9kZWxdPVwibW9kZWwucHJpdmlsZWdlc1wiPjwvYml6ZG9jLXByaXZpbGVnZXM+XHJcbjwvbmctY29udGFpbmVyPlxyXG48IS0tLS0+XHJcbjxuZy10ZW1wbGF0ZSAjaW5mbz5cclxuICA8ZGl2PlxyXG4gIDwvZGl2PlxyXG48L25nLXRlbXBsYXRlPlxyXG4iXX0=
|
@@ -1,30 +1,31 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { Component } from "@angular/core";
|
2
|
+
import { Component, Inject } from "@angular/core";
|
3
3
|
import { Subject, takeUntil } from "rxjs";
|
4
4
|
import { BizDoc } from "../../../core/decorators";
|
5
|
-
import {
|
5
|
+
import { DesignerTypeElementComponent, DesignerRef } from "../designer.base";
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
import * as i1 from "@angular/forms";
|
8
|
-
import * as i2 from "../../../core/router";
|
9
|
-
import * as i3 from "../../
|
8
|
+
import * as i2 from "../../../core/slots/router.service";
|
9
|
+
import * as i3 from "../../system.service";
|
10
10
|
import * as i4 from "../../../core/session.service";
|
11
11
|
import * as i5 from "@angular/common";
|
12
12
|
import * as i6 from "@syncfusion/ej2-angular-charts";
|
13
|
-
import * as i7 from "@angular/material/
|
14
|
-
import * as i8 from "@angular/material/
|
15
|
-
import * as i9 from "
|
16
|
-
import * as i10 from "
|
17
|
-
import * as i11 from "../../../core/
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
import * as i7 from "@angular/material/form-field";
|
14
|
+
import * as i8 from "@angular/material/button";
|
15
|
+
import * as i9 from "@angular/material/input";
|
16
|
+
import * as i10 from "@angular/material/icon";
|
17
|
+
import * as i11 from "../../../core/popup/tooltip.directive";
|
18
|
+
import * as i12 from "../icon-picker.component";
|
19
|
+
import * as i13 from "../privileges.component";
|
20
|
+
import * as i14 from "../../../core/pipes/translate.pipe";
|
21
|
+
import * as i15 from "../designer.base";
|
22
|
+
let FormDesignComponent = class FormDesignComponent extends DesignerTypeElementComponent {
|
23
|
+
constructor(fb, _router, _service, _session, ref) {
|
24
|
+
super(fb, ref);
|
22
25
|
this._router = _router;
|
23
26
|
this._service = _service;
|
24
27
|
this._session = _session;
|
25
|
-
this.
|
26
|
-
disabled: false,
|
27
|
-
});
|
28
|
+
this.rules = this._fb.array([]);
|
28
29
|
this.theme = this._session.theme.dark ? 'MaterialDark' : 'Material';
|
29
30
|
this.axisSettings = {
|
30
31
|
lineSettings: {},
|
@@ -36,7 +37,7 @@ let FormDesignComponent = class FormDesignComponent extends DesignerElementCompo
|
|
36
37
|
};
|
37
38
|
this.tooltipSettings = {
|
38
39
|
visible: true,
|
39
|
-
|
40
|
+
format: '${date}',
|
40
41
|
trackLineSettings: {
|
41
42
|
visible: true
|
42
43
|
}
|
@@ -51,29 +52,61 @@ let FormDesignComponent = class FormDesignComponent extends DesignerElementCompo
|
|
51
52
|
});
|
52
53
|
}
|
53
54
|
ngOnInit() {
|
54
|
-
this.
|
55
|
+
this.form.addControl('rules', this._fb.control(null), { emitEvent: false });
|
56
|
+
this.form.addControl('icon', this._fb.control(this.model.icon), { emitEvent: false });
|
57
|
+
this.form.addControl('_rules', this.rules, { emitEvent: false });
|
55
58
|
if (!this.model.privileges)
|
56
59
|
this.model.privileges = {};
|
57
|
-
this._service.range(this.model.name).subscribe(r =>
|
58
|
-
|
60
|
+
this._service.range(this.model.name).subscribe(r => this.usage = r);
|
61
|
+
this.model.rules && this.rules.setValue(Object.keys(this.model.rules).
|
62
|
+
map(r => {
|
63
|
+
const rule = this.model.rules[r];
|
64
|
+
return {
|
65
|
+
name: r,
|
66
|
+
value: rule.roles || [],
|
67
|
+
rule: rule.rule,
|
68
|
+
title: rule.title
|
69
|
+
};
|
70
|
+
}));
|
71
|
+
this.rules.valueChanges.pipe().subscribe(v => {
|
72
|
+
const rules = {};
|
73
|
+
v.forEach((r) => rules[r.name] = {
|
74
|
+
title: r.title,
|
75
|
+
roles: r.roles,
|
76
|
+
rule: r.rule,
|
77
|
+
});
|
78
|
+
this.form.get('rules').setValue(rules);
|
79
|
+
});
|
80
|
+
super.ngOnInit();
|
81
|
+
}
|
82
|
+
_formrule(name, permission) {
|
83
|
+
return this._fb.group({
|
84
|
+
name: null,
|
85
|
+
title: null,
|
59
86
|
});
|
60
87
|
}
|
61
88
|
diagram() {
|
62
89
|
this._router.navigate(['admin/forms', this.model.name]);
|
63
90
|
}
|
91
|
+
design() {
|
92
|
+
this._router.navigate(['admin/utilities/form-designer'], { queryParams: { formId: this.model.name } });
|
93
|
+
}
|
64
94
|
ngOnDestroy() {
|
65
95
|
this._destroy.next();
|
66
96
|
this._destroy.complete();
|
67
97
|
}
|
68
98
|
};
|
69
|
-
FormDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: FormDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.
|
70
|
-
FormDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: FormDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-
|
99
|
+
FormDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: FormDesignComponent, deps: [{ token: i1.FormBuilder }, { token: i2.PanesRouter }, { token: i3.SystemService }, { token: i4.SessionService }, { token: DesignerRef }], target: i0.ɵɵFactoryTarget.Component });
|
100
|
+
FormDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: FormDesignComponent, 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>\r\n <mat-label>{{'Name'|translate}}</mat-label>\r\n <input matInput formControlName=\"name\" required />\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n <div>\r\n <!--<mat-label>{{'Icon'|translate}}</mat-label>-->\r\n <bizdoc-icon-picker formControlName=\"icon\" required></bizdoc-icon-picker>\r\n </div>\r\n </form>\r\n <bizdoc-layout *ngIf=\"model.arguments\" [fields]=\"model.arguments\" [model]=\"args\" (modelChange)=\"assignargs($event)\"></bizdoc-layout>\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 <!--\r\n [theme]=\"theme\"\r\n [axisSettings]=\"axisSettings\"\r\n -->\r\n\r\n <ejs-sparkline *ngIf=\"usage\" width='250px' height='200px'\r\n type=\"Line\"\r\n [id]=\"model.name\"\r\n [fill]=\"primary\"\r\n [dataSource]=\"usage\"\r\n xName=\"date\"\r\n yName=\"count\"\r\n lineWidth=\"2\"\r\n valueType=\"DateTime\"\r\n [markerSettings]=\"markerSettings\"\r\n [tooltipSettings]=\"tooltipSettings\"\r\n [enableRtl]=\"enableRtl\">\r\n </ejs-sparkline>\r\n <div class=\"row\">\r\n <button mat-icon-button (click)=\"diagram()\" [bizdocTooltip]=\"'Workflow'|translate\" [disabled]=\"model.draft\"><mat-icon>schema</mat-icon></button>\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button (click)=\"design()\" [bizdocTooltip]=\"'Designer'|translate\" [disabled]=\"model.draft\" *ngIf=\"model.type==='BizDoc.Configuration.Forms.Box'\"><mat-icon>design_services</mat-icon></button>\r\n </div>\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: i5.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: "component", type: i6.SparklineComponent, selector: "ejs-sparkline", inputs: ["axisSettings", "border", "containerArea", "dataLabelSettings", "dataSource", "enablePersistence", "enableRtl", "endPointColor", "fill", "format", "height", "highPointColor", "lineWidth", "locale", "lowPointColor", "markerSettings", "negativePointColor", "opacity", "padding", "palette", "query", "rangeBandSettings", "rangePadding", "startPointColor", "theme", "tiePointColor", "tooltipSettings", "type", "useGroupingSeparator", "valueType", "width", "xName", "yName"], outputs: ["axisRendering", "dataLabelRendering", "load", "loaded", "markerRendering", "pointRegionMouseClick", "pointRegionMouseMove", "pointRendering", "resize", "seriesRendering", "sparklineMouseClick", "sparklineMouseMove", "tooltipInitialize"] }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7.MatLabel, selector: "mat-label" }, { kind: "component", type: i8.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: i9.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: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i11.TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { kind: "component", type: i12.IconPickerComponent, selector: "bizdoc-icon-picker", inputs: ["value", "required", "disabled"], outputs: ["valueChanges"] }, { kind: "component", type: i13.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"], outputs: ["change"] }, { kind: "pipe", type: i14.TranslatePipe, name: "translate" }] });
|
71
101
|
FormDesignComponent = __decorate([
|
72
102
|
BizDoc({ selector: 'form-designer' })
|
73
103
|
], FormDesignComponent);
|
74
104
|
export { FormDesignComponent };
|
75
105
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: FormDesignComponent, decorators: [{
|
76
106
|
type: Component,
|
77
|
-
args: [{ template: "<ng-
|
78
|
-
}], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.
|
79
|
-
|
107
|
+
args: [{ template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\">\r\n <mat-form-field>\r\n <mat-label>{{'Name'|translate}}</mat-label>\r\n <input matInput formControlName=\"name\" required />\r\n </mat-form-field>\r\n <mat-form-field>\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n <div>\r\n <!--<mat-label>{{'Icon'|translate}}</mat-label>-->\r\n <bizdoc-icon-picker formControlName=\"icon\" required></bizdoc-icon-picker>\r\n </div>\r\n </form>\r\n <bizdoc-layout *ngIf=\"model.arguments\" [fields]=\"model.arguments\" [model]=\"args\" (modelChange)=\"assignargs($event)\"></bizdoc-layout>\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 <!--\r\n [theme]=\"theme\"\r\n [axisSettings]=\"axisSettings\"\r\n -->\r\n\r\n <ejs-sparkline *ngIf=\"usage\" width='250px' height='200px'\r\n type=\"Line\"\r\n [id]=\"model.name\"\r\n [fill]=\"primary\"\r\n [dataSource]=\"usage\"\r\n xName=\"date\"\r\n yName=\"count\"\r\n lineWidth=\"2\"\r\n valueType=\"DateTime\"\r\n [markerSettings]=\"markerSettings\"\r\n [tooltipSettings]=\"tooltipSettings\"\r\n [enableRtl]=\"enableRtl\">\r\n </ejs-sparkline>\r\n <div class=\"row\">\r\n <button mat-icon-button (click)=\"diagram()\" [bizdocTooltip]=\"'Workflow'|translate\" [disabled]=\"model.draft\"><mat-icon>schema</mat-icon></button>\r\n <span class=\"divider\"></span>\r\n <button mat-icon-button (click)=\"design()\" [bizdocTooltip]=\"'Designer'|translate\" [disabled]=\"model.draft\" *ngIf=\"model.type==='BizDoc.Configuration.Forms.Box'\"><mat-icon>design_services</mat-icon></button>\r\n </div>\r\n</ng-template>\r\n" }]
|
108
|
+
}], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.PanesRouter }, { type: i3.SystemService }, { type: i4.SessionService }, { type: i15.DesignerRef, decorators: [{
|
109
|
+
type: Inject,
|
110
|
+
args: [DesignerRef]
|
111
|
+
}] }]; } });
|
112
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyY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ICAgICAgICAgICAgICAgIFttYXJrZXJTZXR0aW5nc109XCJtYXJrZXJTZXR0aW5nc1wiXHJcbiAgICAgICAgICAgICAgICAgW3Rvb2x0aXBTZXR0aW5nc109XCJ0b29sdGlwU2V0dGluZ3NcIlxyXG4gICAgICAgICAgICAgICAgIFtlbmFibGVSdGxdPVwiZW5hYmxlUnRsXCI+XHJcbiAgPC9lanMtc3BhcmtsaW5lPlxyXG4gIDxkaXYgY2xhc3M9XCJyb3dcIj5cclxuICAgIDxidXR0b24gbWF0LWljb24tYnV0dG9uIChjbGljayk9XCJkaWFncmFtKClcIiBbYml6ZG9jVG9vbHRpcF09XCInV29ya2Zsb3cnfHRyYW5zbGF0ZVwiIFtkaXNhYmxlZF09XCJtb2RlbC5kcmFmdFwiPjxtYXQtaWNvbj5zY2hlbWE8L21hdC1pY29uPjwvYnV0dG9uPlxyXG4gICAgPHNwYW4gY2xhc3M9XCJkaXZpZGVyXCI+PC9zcGFuPlxyXG4gICAgPGJ1dHRvbiBtYXQtaWNvbi1idXR0b24gKGNsaWNrKT1cImRlc2lnbigpXCIgW2JpemRvY1Rvb2x0aXBdPVwiJ0Rlc2lnbmVyJ3x0cmFuc2xhdGVcIiBbZGlzYWJsZWRdPVwibW9kZWwuZHJhZnRcIiAqbmdJZj1cIm1vZGVsLnR5cGU9PT0nQml6RG9jLkNvbmZpZ3VyYXRpb24uRm9ybXMuQm94J1wiPjxtYXQtaWNvbj5kZXNpZ25fc2VydmljZXM8L21hdC1pY29uPjwvYnV0dG9uPlxyXG4gIDwvZGl2PlxyXG48L25nLXRlbXBsYXRlPlxyXG4iXX0=
|
@@ -1,36 +1,51 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
+
import { moveItemInArray } from "@angular/cdk/drag-drop";
|
2
3
|
import { Component } from "@angular/core";
|
3
4
|
import { BizDoc } from "../../../core/decorators";
|
4
|
-
import {
|
5
|
+
import { DesignerTypeElementComponent } from "../designer.base";
|
5
6
|
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 "@angular/
|
7
|
+
import * as i1 from "@angular/common";
|
8
|
+
import * as i2 from "@angular/forms";
|
9
|
+
import * as i3 from "@angular/material/form-field";
|
10
|
+
import * as i4 from "@angular/material/input";
|
10
11
|
import * as i5 from "../privileges.component";
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
this.
|
16
|
-
this._session = _session;
|
17
|
-
this.form = this._fb.group({
|
18
|
-
disabled: false,
|
19
|
-
});
|
12
|
+
import * as i6 from "../../../core/pipes/translate.pipe";
|
13
|
+
let GuideDesignComponent = class GuideDesignComponent extends DesignerTypeElementComponent {
|
14
|
+
constructor() {
|
15
|
+
super(...arguments);
|
16
|
+
this.steps = this._fb.array([]);
|
20
17
|
}
|
21
18
|
ngOnInit() {
|
19
|
+
super.ngOnInit();
|
20
|
+
this.form.addControl('steps', this.steps);
|
22
21
|
if (!this.model.privileges)
|
23
22
|
this.model.privileges = {};
|
23
|
+
if (!this.model.steps)
|
24
|
+
this.model.steps = [];
|
25
|
+
else
|
26
|
+
this.model.steps.forEach(s => this.steps.push(this._stepform(s), { emitEvent: false }));
|
27
|
+
}
|
28
|
+
drop(event) {
|
29
|
+
moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
|
30
|
+
}
|
31
|
+
add() {
|
32
|
+
this.steps.push(this._stepform({}));
|
33
|
+
}
|
34
|
+
_stepform(step) {
|
35
|
+
return this._fb.group({
|
36
|
+
content: step.content,
|
37
|
+
title: step.title,
|
38
|
+
});
|
24
39
|
}
|
25
40
|
};
|
26
|
-
GuideDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: GuideDesignComponent, deps:
|
27
|
-
GuideDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: GuideDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-
|
41
|
+
GuideDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: GuideDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
42
|
+
GuideDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: GuideDesignComponent, 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 class=\"flex\">\r\n <mat-label>{{'Title'|translate}}</mat-label>\r\n <input matInput formControlName=\"title\" required />\r\n </mat-form-field>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Name'|translate}}</mat-label>\r\n <input matInput formControlName=\"name\" required />\r\n <h2 class=\"mat-title\">{{'Steps'|translate}}</h2>\r\n </mat-form-field>\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 <dl>\r\n <dt></dt>\r\n <dd></dd>\r\n <dt></dt>\r\n <dd></dd>\r\n <dt></dt>\r\n <dd></dd>\r\n </dl>\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.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { 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.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.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: i5.PrivilegesDesignComponent, selector: "bizdoc-privileges", inputs: ["model"], outputs: ["change"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] });
|
28
43
|
GuideDesignComponent = __decorate([
|
29
44
|
BizDoc({ selector: 'guide-designer' })
|
30
45
|
], GuideDesignComponent);
|
31
46
|
export { GuideDesignComponent };
|
32
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: GuideDesignComponent, decorators: [{
|
33
48
|
type: Component,
|
34
|
-
args: [{ template: "<ng-
|
35
|
-
}]
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
49
|
+
args: [{ template: "<ng-container *ngIf=\"editMode; else info\">\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\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 <mat-form-field class=\"flex\">\r\n <mat-label>{{'Name'|translate}}</mat-label>\r\n <input matInput formControlName=\"name\" required />\r\n <h2 class=\"mat-title\">{{'Steps'|translate}}</h2>\r\n </mat-form-field>\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 <dl>\r\n <dt></dt>\r\n <dd></dd>\r\n <dt></dt>\r\n <dd></dd>\r\n <dt></dt>\r\n <dd></dd>\r\n </dl>\r\n</ng-template>\r\n" }]
|
50
|
+
}] });
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VpZGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9hZG1pbi9jb25maWd1cmF0aW9uLWRlc2lnbmVyL2VsZW1lbnRzL2d1aWRlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvYWRtaW4vY29uZmlndXJhdGlvbi1kZXNpZ25lci9lbGVtZW50cy9ndWlkZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFlLGVBQWUsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3RFLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFFbEQsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBRWxELE9BQU8sRUFBRSw0QkFBNEIsRUFBZ0IsTUFBTSxrQkFBa0IsQ0FBQzs7Ozs7Ozs7SUFJakUsb0JBQW9CLFNBQXBCLG9CQUFxQixTQUFRLDRCQUE0Qjs7O1FBQzNELFVBQUssR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLEtBQUss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