@bizdoc/core 1.17.10 → 1.17.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/bizdoc-schema.json +1 -0
- package/esm2020/lib/admin/architecture/declarations.mjs +1 -1
- package/esm2020/lib/admin/architecture/designer-element.component.mjs +2 -2
- package/esm2020/lib/admin/architecture/designer.base.mjs +29 -1
- package/esm2020/lib/admin/architecture/designer.component.mjs +5 -4
- package/esm2020/lib/admin/architecture/elements/action.component.mjs +1 -1
- package/esm2020/lib/admin/architecture/elements/attribute.component.mjs +6 -5
- package/esm2020/lib/admin/architecture/elements/configuration-datasource.component.mjs +1 -1
- package/esm2020/lib/admin/architecture/elements/control.component.mjs +3 -2
- package/esm2020/lib/admin/architecture/elements/cube.component.mjs +24 -20
- package/esm2020/lib/admin/architecture/elements/folder.component.mjs +4 -3
- package/esm2020/lib/admin/architecture/elements/form-invite.dialog.mjs +1 -1
- package/esm2020/lib/admin/architecture/elements/form.component.mjs +4 -4
- package/esm2020/lib/admin/architecture/elements/report.component.mjs +4 -3
- package/esm2020/lib/admin/architecture/elements/role.component.mjs +6 -5
- package/esm2020/lib/admin/architecture/elements/state.component.mjs +1 -1
- package/esm2020/lib/admin/architecture/elements/type.component.mjs +6 -6
- package/esm2020/lib/admin/architecture/elements/widget.component.mjs +4 -3
- package/esm2020/lib/admin/core/localized-string.component.mjs +12 -45
- package/esm2020/lib/admin/form/designer/box-designer.component.mjs +11 -9
- package/esm2020/lib/admin/form/designer/properties.component.mjs +2 -2
- package/esm2020/lib/admin/form/designer/section.component.mjs +1 -1
- package/esm2020/lib/admin/form/workflow/node.component.mjs +2 -2
- package/esm2020/lib/admin/positions/positions.component.mjs +27 -26
- package/esm2020/lib/admin/system.service.mjs +30 -2
- package/esm2020/lib/browse/browse-items.component.mjs +12 -11
- package/esm2020/lib/compose/form.component.mjs +4 -4
- package/esm2020/lib/compose/version-compare/version-compare.directive.mjs +8 -8
- package/esm2020/lib/core/checkbox.mjs +5 -5
- package/esm2020/lib/core/component-factory-resolver.mjs +1 -1
- package/esm2020/lib/core/fields/address.designer.mjs +1 -1
- package/esm2020/lib/core/fields/autocomplete.field.mjs +27 -12
- package/esm2020/lib/core/fields/checkbox.designer.mjs +1 -1
- package/esm2020/lib/core/fields/checkbox.field.mjs +3 -3
- package/esm2020/lib/core/fields/checklist.designer.mjs +27 -12
- package/esm2020/lib/core/fields/date-range.designer.mjs +1 -1
- package/esm2020/lib/core/fields/date.designer.mjs +1 -1
- package/esm2020/lib/core/fields/expression.field.mjs +31 -5
- package/esm2020/lib/core/fields/file.designer.mjs +1 -1
- package/esm2020/lib/core/fields/html.designer.mjs +1 -1
- package/esm2020/lib/core/fields/input.designer.mjs +1 -1
- package/esm2020/lib/core/fields/localized-string.field.mjs +32 -5
- package/esm2020/lib/core/fields/numeric.designer.mjs +1 -1
- package/esm2020/lib/core/fields/options.base.mjs +7 -7
- package/esm2020/lib/core/fields/options.component.mjs +3 -3
- package/esm2020/lib/core/fields/radio-button.designer.mjs +9 -9
- package/esm2020/lib/core/fields/select.designer.mjs +26 -12
- package/esm2020/lib/core/fields/signature.designer.mjs +1 -1
- package/esm2020/lib/core/fields/textarea.designer.mjs +1 -1
- package/esm2020/lib/core/fields/time.designer.mjs +40 -0
- package/esm2020/lib/core/fields/time.field.mjs +40 -0
- package/esm2020/lib/core/fields/timespan.field.mjs +19 -2
- package/esm2020/lib/core/fields/yesno.designer.mjs +29 -15
- package/esm2020/lib/core/inputs/auto-complete.input.mjs +2 -2
- package/esm2020/lib/core/inputs/select.input.mjs +2 -2
- package/esm2020/lib/core/layout.component.mjs +9 -71
- package/esm2020/lib/core/models.mjs +1 -19
- package/esm2020/lib/core/slots/router.service.mjs +2 -2
- package/esm2020/lib/core/slots/slots.component.mjs +7 -4
- package/esm2020/lib/cube/chart/chart.component.mjs +2 -2
- package/esm2020/lib/cube/explore/explore-items.component.mjs +9 -9
- package/esm2020/lib/designer.module.mjs +18 -14
- package/esm2020/lib/reports/report-viewer.component.mjs +2 -2
- package/esm2020/lib/reports/report.mobile.component.mjs +5 -5
- package/esm2020/lib/reports/table/table-view.component.mjs +2 -2
- package/esm2020/lib/shared.module.mjs +6 -4
- package/esm2020/lib/system.module.mjs +7 -3
- package/esm2020/lib/views/timeline/timeline.component.exp.mjs +5 -2
- package/esm2020/public-api.mjs +5 -1
- package/fesm2015/bizdoc-core.mjs +7208 -7053
- package/fesm2015/bizdoc-core.mjs.map +1 -1
- package/fesm2020/bizdoc-core.mjs +11266 -11115
- package/fesm2020/bizdoc-core.mjs.map +1 -1
- package/lib/admin/architecture/declarations.d.ts +5 -0
- package/lib/admin/architecture/designer.base.d.ts +4 -2
- package/lib/admin/architecture/elements/attribute.component.d.ts +2 -2
- package/lib/admin/architecture/elements/control.component.d.ts +2 -2
- package/lib/admin/architecture/elements/cube.component.d.ts +5 -5
- package/lib/admin/architecture/elements/folder.component.d.ts +1 -0
- package/lib/admin/architecture/elements/form.component.d.ts +2 -2
- package/lib/admin/architecture/elements/role.component.d.ts +2 -2
- package/lib/admin/architecture/elements/type.component.d.ts +1 -1
- package/lib/admin/core/localized-string.component.d.ts +4 -17
- package/lib/admin/form/designer/box-designer.component.d.ts +1 -2
- package/lib/admin/positions/positions.component.d.ts +8 -5
- package/lib/admin/system.service.d.ts +12 -1
- package/lib/core/checkbox.d.ts +2 -2
- package/lib/core/component-factory-resolver.d.ts +1 -1
- package/lib/core/fields/autocomplete.field.d.ts +4 -6
- package/lib/core/fields/checklist.designer.d.ts +2 -2
- package/lib/core/fields/expression.field.d.ts +12 -2
- package/lib/core/fields/localized-string.field.d.ts +9 -2
- package/lib/core/fields/options.base.d.ts +6 -5
- package/lib/core/fields/radio-button.designer.d.ts +2 -2
- package/lib/core/fields/select.designer.d.ts +2 -2
- package/lib/core/fields/time.designer.d.ts +25 -0
- package/lib/core/fields/time.field.d.ts +22 -0
- package/lib/core/fields/timespan.field.d.ts +10 -2
- package/lib/core/fields/yesno.designer.d.ts +4 -6
- package/lib/core/layout.component.d.ts +5 -2
- package/lib/core/models.d.ts +4 -28
- package/lib/core/slots/router.service.d.ts +1 -1
- package/lib/designer.module.d.ts +24 -20
- package/lib/shared.module.d.ts +137 -136
- package/lib/views/timeline/timeline.component.exp.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
@@ -8,7 +8,7 @@ import * as i3 from "@angular/material/core";
|
|
8
8
|
import * as i4 from "@angular/material/form-field";
|
9
9
|
import * as i5 from "@angular/material/select";
|
10
10
|
import * as i6 from "../designer-element.component";
|
11
|
-
import * as i7 from "../../../core/pipes/
|
11
|
+
import * as i7 from "../../../core/pipes/sort.pipe";
|
12
12
|
import * as i8 from "../../../core/pipes/translate.pipe";
|
13
13
|
export class AttributeDesignComponent extends DesignerTypeElementComponent {
|
14
14
|
constructor() {
|
@@ -18,14 +18,15 @@ export class AttributeDesignComponent extends DesignerTypeElementComponent {
|
|
18
18
|
});
|
19
19
|
}
|
20
20
|
ngOnInit() {
|
21
|
-
this.
|
21
|
+
if (this.mode !== 'widget')
|
22
|
+
this.datatypes = super._typegroups;
|
22
23
|
super.ngOnInit();
|
23
24
|
}
|
24
25
|
}
|
25
26
|
AttributeDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: AttributeDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
26
|
-
AttributeDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: AttributeDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<bizdoc-designer-element [form]=\"form\">\r\n <ng-template bizdocEditContent>\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <mat-form-field>\r\n <mat-label>{{'DataType'|translate}}</mat-label>\r\n <mat-select required formControlName=\"dataType\">\r\n <mat-option *ngFor=\"let t of datatypes\" [value]=\"t.name\"
|
27
|
+
AttributeDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: AttributeDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<bizdoc-designer-element [form]=\"form\">\r\n <ng-template bizdocEditContent>\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <mat-form-field>\r\n <mat-label>{{'DataType'|translate}}</mat-label>\r\n <mat-select required formControlName=\"dataType\">\r\n <mat-option *ngFor=\"let t of datatypes['_'].elements|sort: 'title'\" [value]=\"t.name\">\r\n {{t.title}}\r\n </mat-option>\r\n <mat-optgroup *ngFor=\"let g of datatypes|sort: 'title'\" [label]=\"g.title\">\r\n <mat-option *ngFor=\"let t of g.elements|sort: 'title'\" [value]=\"t.name\">\r\n {{t.title}}\r\n </mat-option>\r\n </mat-optgroup>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n </ng-template>\r\n</bizdoc-designer-element>\r\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { 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.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.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i3.MatOptgroup, selector: "mat-optgroup", inputs: ["disabled"], exportAs: ["matOptgroup"] }, { 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: "directive", type: i6.EditContentDirective, selector: "[bizdocEditContent]" }, { kind: "component", type: i6.DesignerItemComponent, selector: "bizdoc-designer-element", inputs: ["privileges", "icon", "form", "view", "context"], outputs: ["continue", "back", "save"] }, { kind: "pipe", type: i7.ArraySortPipe, name: "sort" }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }] });
|
27
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: AttributeDesignComponent, decorators: [{
|
28
29
|
type: Component,
|
29
|
-
args: [{ template: "<bizdoc-designer-element [form]=\"form\">\r\n <ng-template bizdocEditContent>\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <mat-form-field>\r\n <mat-label>{{'DataType'|translate}}</mat-label>\r\n <mat-select required formControlName=\"dataType\">\r\n <mat-option *ngFor=\"let t of datatypes\" [value]=\"t.name\"
|
30
|
+
args: [{ template: "<bizdoc-designer-element [form]=\"form\">\r\n <ng-template bizdocEditContent>\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <mat-form-field>\r\n <mat-label>{{'DataType'|translate}}</mat-label>\r\n <mat-select required formControlName=\"dataType\">\r\n <mat-option *ngFor=\"let t of datatypes['_'].elements|sort: 'title'\" [value]=\"t.name\">\r\n {{t.title}}\r\n </mat-option>\r\n <mat-optgroup *ngFor=\"let g of datatypes|sort: 'title'\" [label]=\"g.title\">\r\n <mat-option *ngFor=\"let t of g.elements|sort: 'title'\" [value]=\"t.name\">\r\n {{t.title}}\r\n </mat-option>\r\n </mat-optgroup>\r\n </mat-select>\r\n </mat-form-field>\r\n </form>\r\n </ng-template>\r\n</bizdoc-designer-element>\r\n" }]
|
30
31
|
}] });
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXR0cmlidXRlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvYWRtaW4vYXJjaGl0ZWN0dXJlL2VsZW1lbnRzL2F0dHJpYnV0ZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2FkbWluL2FyY2hpdGVjdHVyZS9lbGVtZW50cy9hdHRyaWJ1dGUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFNUMsT0FBTyxFQUFFLDRCQUE0QixFQUFFLE1BQU0sa0JBQWtCLENBQUM7Ozs7Ozs7Ozs7QUFHaEUsTUFBTSxPQUFPLHdCQUF5QixTQUFRLDRCQUE0QjtJQUQxRTs7UUFHVyxTQUFJLEdBQUcsSUFBSSxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUM7WUFDN0IsUUFBUSxFQUFFLElBQUksQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLElBQUksRUFBRSxVQUFVLENBQUMsUUFBUSxDQUFDO1NBQ3RELENBQUMsQ0FBQztLQU1KO0lBTEMsUUFBUTtRQUNOLElBQUksSUFBSSxDQUFDLElBQUksS0FBSyxRQUFRO1lBQ3hCLElBQUksQ0F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1wbGF0ZT5cclxuPC9iaXpkb2MtZGVzaWduZXItZWxlbWVudD5cclxuIl19
|
@@ -55,7 +55,7 @@ let ConfigurationDatasourceDesignComponent = class ConfigurationDatasourceDesign
|
|
55
55
|
}
|
56
56
|
};
|
57
57
|
ConfigurationDatasourceDesignComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ConfigurationDatasourceDesignComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
58
|
-
ConfigurationDatasourceDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ConfigurationDatasourceDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"mode === 'widget'; else edit\">\r\n</ng-container>\r\n<ng-template #edit>\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <h2 class=\"mat-title row\">\r\n {{'Items'|translate}}\r\n <span class=divider></span>\r\n <button mat-icon-button (click)=\"add()\" [bizdocTooltip]=\"'Add'|translate\"><mat-icon>add_circle_outline</mat-icon></button>\r\n </h2>\r\n <div class=\"column\" cdkDropList (cdkDropListDropped)=\"drop($event, items)\">\r\n <div class=\"row\" *ngFor=\"let a of items.controls; index as index\" [formGroup]=\"a\" cdkDrag>\r\n <mat-icon cdkDragHandle>drag_indicator</mat-icon>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Key'|translate}}</mat-label>\r\n <input matInput formControlName=\"key\" required />\r\n </mat-form-field>\r\n \r\n <bizdoc-localized-string [placeholder]=\"'Value'|translate\" formControlName=\"value\" required class=\"row\"></bizdoc-localized-string>\r\n <button mat-icon-button (click)=\"items.removeAt(index)\" [bizdocTooltip]=\"'Remove'|translate\"><mat-icon>delete</mat-icon></button>\r\n </div>\r\n </div>\r\n </form>\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.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: "directive", type: i3.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: i3.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: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { 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.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: i6.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: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8.TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { kind: "component", type: i9.LocalizedStringComponent, selector: "bizdoc-localized-string", inputs: ["class", "value", "placeholder", "required", "disabled", "maxlength"]
|
58
|
+
ConfigurationDatasourceDesignComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ConfigurationDatasourceDesignComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"mode === 'widget'; else edit\">\r\n</ng-container>\r\n<ng-template #edit>\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <h2 class=\"mat-title row\">\r\n {{'Items'|translate}}\r\n <span class=divider></span>\r\n <button mat-icon-button (click)=\"add()\" [bizdocTooltip]=\"'Add'|translate\"><mat-icon>add_circle_outline</mat-icon></button>\r\n </h2>\r\n <div class=\"column\" cdkDropList (cdkDropListDropped)=\"drop($event, items)\">\r\n <div class=\"row\" *ngFor=\"let a of items.controls; index as index\" [formGroup]=\"a\" cdkDrag>\r\n <mat-icon cdkDragHandle>drag_indicator</mat-icon>\r\n <mat-form-field class=\"flex\">\r\n <mat-label>{{'Key'|translate}}</mat-label>\r\n <input matInput formControlName=\"key\" required />\r\n </mat-form-field>\r\n \r\n <bizdoc-localized-string [placeholder]=\"'Value'|translate\" formControlName=\"value\" required class=\"row\"></bizdoc-localized-string>\r\n <button mat-icon-button (click)=\"items.removeAt(index)\" [bizdocTooltip]=\"'Remove'|translate\"><mat-icon>delete</mat-icon></button>\r\n </div>\r\n </div>\r\n </form>\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.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: "directive", type: i3.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: i3.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: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { 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.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: i6.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: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8.TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { kind: "component", type: i9.LocalizedStringComponent, selector: "bizdoc-localized-string", inputs: ["class", "floatLabel", "value", "placeholder", "required", "disabled", "maxlength"] }, { kind: "pipe", type: i10.TranslatePipe, name: "translate" }] });
|
59
59
|
ConfigurationDatasourceDesignComponent = __decorate([
|
60
60
|
BizDoc({ selector: 'configuration-datasource-designer' })
|
61
61
|
], ConfigurationDatasourceDesignComponent);
|
@@ -14,7 +14,8 @@ export class ControlDesignComponent extends DesignerTypeElementComponent {
|
|
14
14
|
});
|
15
15
|
}
|
16
16
|
ngOnInit() {
|
17
|
-
this.
|
17
|
+
if (this.mode !== 'widget')
|
18
|
+
this.datatypes = super._typegroups;
|
18
19
|
super.ngOnInit();
|
19
20
|
}
|
20
21
|
}
|
@@ -24,4 +25,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
|
|
24
25
|
type: Component,
|
25
26
|
args: [{ template: "<bizdoc-designer-element [form]=\"form\">\r\n <ng-template bizdocEditContent>\r\n <form autocomplete=\"off\" [formGroup]=\"form\" class=\"column\">\r\n <div><mat-checkbox formControlName=\"visible\">{{'Visible'}}</mat-checkbox></div>\r\n </form>\r\n </ng-template>\r\n</bizdoc-designer-element>\r\n" }]
|
26
27
|
}] });
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi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