@3kles/kles-material-dynamicforms 1.1.19 → 14.0.1
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/esm2020/3kles-kles-material-dynamicforms.mjs +5 -0
- package/esm2020/lib/decorators/component.decorator.mjs +7 -0
- package/esm2020/lib/directive/dynamic-component.directive.mjs +44 -0
- package/esm2020/lib/directive/dynamic-field.directive.mjs +50 -0
- package/esm2020/lib/dynamic-form.component.mjs +247 -0
- package/esm2020/lib/enums/type.enum.mjs +19 -0
- package/esm2020/lib/fields/array.component.mjs +53 -0
- package/esm2020/lib/fields/badge.component.mjs +40 -0
- package/esm2020/lib/fields/button-form.component.mjs +44 -0
- package/esm2020/lib/fields/button-submit.component.mjs +38 -0
- package/esm2020/lib/fields/button-toogle-group.component.mjs +51 -0
- package/esm2020/lib/fields/buttonchecker-form.component.mjs +44 -0
- package/esm2020/lib/fields/buttonfile-form.component.mjs +42 -0
- package/esm2020/lib/fields/checkbox.component.mjs +50 -0
- package/esm2020/lib/fields/chip.component.mjs +41 -0
- package/esm2020/lib/fields/color.component.mjs +84 -0
- package/esm2020/lib/fields/date.component.mjs +52 -0
- package/esm2020/lib/fields/field.abstract.mjs +57 -0
- package/esm2020/lib/fields/group.component.mjs +46 -0
- package/esm2020/lib/fields/icon.component.mjs +28 -0
- package/esm2020/lib/fields/input.clearable.component.mjs +112 -0
- package/esm2020/lib/fields/input.component.mjs +158 -0
- package/esm2020/lib/fields/label.component.mjs +40 -0
- package/esm2020/lib/fields/line-break.component.mjs +23 -0
- package/esm2020/lib/fields/link.component.mjs +32 -0
- package/esm2020/lib/fields/list-field.component.mjs +113 -0
- package/esm2020/lib/fields/radio.component.mjs +49 -0
- package/esm2020/lib/fields/select.component.mjs +210 -0
- package/esm2020/lib/fields/select.search.component.mjs +307 -0
- package/esm2020/lib/fields/selection-list.component.mjs +63 -0
- package/esm2020/lib/fields/slide-toggle.component.mjs +43 -0
- package/esm2020/lib/fields/text.component.mjs +40 -0
- package/esm2020/lib/fields/textarea.component.mjs +56 -0
- package/esm2020/lib/forms/button-control.component.mjs +115 -0
- package/esm2020/lib/forms/buttonchecker-control.component.mjs +85 -0
- package/esm2020/lib/forms/buttonfile-control.component.mjs +118 -0
- package/esm2020/lib/interfaces/component.interface.mjs +2 -0
- package/esm2020/lib/interfaces/field.config.interface.mjs +2 -0
- package/esm2020/lib/interfaces/field.interface.mjs +2 -0
- package/esm2020/lib/interfaces/validator.interface.mjs +2 -0
- package/esm2020/lib/kles-material-dynamicforms.module.mjs +191 -0
- package/esm2020/lib/matcher/form-error.matcher.mjs +16 -0
- package/esm2020/lib/modules/material.module.mjs +278 -0
- package/esm2020/lib/pipe/array.pipe.mjs +22 -0
- package/esm2020/lib/pipe/transform.pipe.mjs +27 -0
- package/esm2020/lib/validators/autocomplete.validator.mjs +23 -0
- package/esm2020/public-api.mjs +58 -0
- package/fesm2015/3kles-kles-material-dynamicforms.mjs +2829 -0
- package/fesm2015/3kles-kles-material-dynamicforms.mjs.map +1 -0
- package/fesm2020/3kles-kles-material-dynamicforms.mjs +2826 -0
- package/fesm2020/3kles-kles-material-dynamicforms.mjs.map +1 -0
- package/{3kles-kles-material-dynamicforms.d.ts → index.d.ts} +1 -1
- package/lib/decorators/component.decorator.d.ts +8 -0
- package/lib/directive/dynamic-component.directive.d.ts +5 -3
- package/lib/directive/dynamic-field.directive.d.ts +7 -5
- package/lib/dynamic-form.component.d.ts +6 -3
- package/lib/enums/type.enum.d.ts +4 -1
- package/lib/fields/array.component.d.ts +5 -2
- package/lib/fields/badge.component.d.ts +3 -0
- package/lib/fields/button-form.component.d.ts +3 -0
- package/lib/fields/button-submit.component.d.ts +3 -0
- package/lib/fields/button-toogle-group.component.d.ts +3 -0
- package/lib/fields/buttonchecker-form.component.d.ts +3 -0
- package/lib/fields/buttonfile-form.component.d.ts +3 -0
- package/lib/fields/checkbox.component.d.ts +4 -1
- package/lib/fields/chip.component.d.ts +3 -0
- package/lib/fields/color.component.d.ts +3 -0
- package/lib/fields/date.component.d.ts +3 -0
- package/lib/fields/field.abstract.d.ts +6 -6
- package/lib/fields/group.component.d.ts +5 -2
- package/lib/fields/icon.component.d.ts +3 -0
- package/lib/fields/input.clearable.component.d.ts +3 -0
- package/lib/fields/input.component.d.ts +3 -0
- package/lib/fields/label.component.d.ts +3 -0
- package/lib/fields/line-break.component.d.ts +5 -2
- package/lib/fields/link.component.d.ts +3 -0
- package/lib/fields/list-field.component.d.ts +7 -5
- package/lib/fields/radio.component.d.ts +3 -0
- package/lib/fields/select.component.d.ts +5 -3
- package/lib/fields/select.search.component.d.ts +6 -3
- package/lib/fields/selection-list.component.d.ts +3 -0
- package/lib/fields/slide-toggle.component.d.ts +3 -0
- package/lib/fields/text.component.d.ts +3 -0
- package/lib/fields/textarea.component.d.ts +3 -0
- package/lib/forms/button-control.component.d.ts +3 -0
- package/lib/forms/buttonchecker-control.component.d.ts +3 -0
- package/lib/forms/buttonfile-control.component.d.ts +3 -0
- package/lib/interfaces/field.config.interface.d.ts +3 -6
- package/lib/interfaces/field.interface.d.ts +2 -2
- package/lib/kles-material-dynamicforms.module.d.ts +45 -0
- package/lib/matcher/form-error.matcher.d.ts +5 -2
- package/lib/modules/material.module.d.ts +40 -0
- package/lib/pipe/array.pipe.d.ts +3 -0
- package/lib/pipe/transform.pipe.d.ts +3 -0
- package/package.json +22 -12
- package/public-api.d.ts +2 -1
- package/3kles-kles-material-dynamicforms.metadata.json +0 -1
- package/bundles/3kles-kles-material-dynamicforms.umd.js +0 -1980
- package/bundles/3kles-kles-material-dynamicforms.umd.js.map +0 -1
- package/bundles/3kles-kles-material-dynamicforms.umd.min.js +0 -16
- package/bundles/3kles-kles-material-dynamicforms.umd.min.js.map +0 -1
- package/esm2015/3kles-kles-material-dynamicforms.js +0 -6
- package/esm2015/lib/directive/dynamic-component.directive.js +0 -50
- package/esm2015/lib/directive/dynamic-field.directive.js +0 -95
- package/esm2015/lib/dynamic-form.component.js +0 -260
- package/esm2015/lib/enums/type.enum.js +0 -16
- package/esm2015/lib/fields/array.component.js +0 -37
- package/esm2015/lib/fields/badge.component.js +0 -23
- package/esm2015/lib/fields/button-form.component.js +0 -31
- package/esm2015/lib/fields/button-submit.component.js +0 -23
- package/esm2015/lib/fields/button-toogle-group.component.js +0 -35
- package/esm2015/lib/fields/buttonchecker-form.component.js +0 -31
- package/esm2015/lib/fields/buttonfile-form.component.js +0 -30
- package/esm2015/lib/fields/checkbox.component.js +0 -27
- package/esm2015/lib/fields/chip.component.js +0 -26
- package/esm2015/lib/fields/color.component.js +0 -61
- package/esm2015/lib/fields/date.component.js +0 -31
- package/esm2015/lib/fields/field.abstract.js +0 -68
- package/esm2015/lib/fields/group.component.js +0 -33
- package/esm2015/lib/fields/icon.component.js +0 -21
- package/esm2015/lib/fields/input.clearable.component.js +0 -59
- package/esm2015/lib/fields/input.component.js +0 -104
- package/esm2015/lib/fields/label.component.js +0 -26
- package/esm2015/lib/fields/line-break.component.js +0 -22
- package/esm2015/lib/fields/link.component.js +0 -23
- package/esm2015/lib/fields/list-field.component.js +0 -88
- package/esm2015/lib/fields/radio.component.js +0 -30
- package/esm2015/lib/fields/select.component.js +0 -127
- package/esm2015/lib/fields/select.search.component.js +0 -205
- package/esm2015/lib/fields/selection-list.component.js +0 -43
- package/esm2015/lib/fields/slide-toggle.component.js +0 -27
- package/esm2015/lib/fields/text.component.js +0 -23
- package/esm2015/lib/fields/textarea.component.js +0 -35
- package/esm2015/lib/forms/button-control.component.js +0 -102
- package/esm2015/lib/forms/buttonchecker-control.component.js +0 -53
- package/esm2015/lib/forms/buttonfile-control.component.js +0 -103
- package/esm2015/lib/interfaces/component.interface.js +0 -1
- package/esm2015/lib/interfaces/directive.interface.js +0 -1
- package/esm2015/lib/interfaces/field.config.interface.js +0 -1
- package/esm2015/lib/interfaces/field.interface.js +0 -1
- package/esm2015/lib/interfaces/validator.interface.js +0 -1
- package/esm2015/lib/kles-material-dynamicforms.module.js +0 -116
- package/esm2015/lib/matcher/form-error.matcher.js +0 -9
- package/esm2015/lib/modules/material.module.js +0 -129
- package/esm2015/lib/pipe/array.pipe.js +0 -20
- package/esm2015/lib/pipe/transform.pipe.js +0 -25
- package/esm2015/lib/validators/autocomplete.validator.js +0 -23
- package/esm2015/public-api.js +0 -51
- package/esm5/3kles-kles-material-dynamicforms.js +0 -6
- package/esm5/lib/directive/dynamic-component.directive.js +0 -51
- package/esm5/lib/directive/dynamic-field.directive.js +0 -96
- package/esm5/lib/dynamic-form.component.js +0 -262
- package/esm5/lib/enums/type.enum.js +0 -16
- package/esm5/lib/fields/array.component.js +0 -31
- package/esm5/lib/fields/badge.component.js +0 -24
- package/esm5/lib/fields/button-form.component.js +0 -24
- package/esm5/lib/fields/button-submit.component.js +0 -24
- package/esm5/lib/fields/button-toogle-group.component.js +0 -31
- package/esm5/lib/fields/buttonchecker-form.component.js +0 -24
- package/esm5/lib/fields/buttonfile-form.component.js +0 -24
- package/esm5/lib/fields/checkbox.component.js +0 -22
- package/esm5/lib/fields/chip.component.js +0 -22
- package/esm5/lib/fields/color.component.js +0 -49
- package/esm5/lib/fields/date.component.js +0 -22
- package/esm5/lib/fields/field.abstract.js +0 -70
- package/esm5/lib/fields/group.component.js +0 -30
- package/esm5/lib/fields/icon.component.js +0 -22
- package/esm5/lib/fields/input.clearable.component.js +0 -22
- package/esm5/lib/fields/input.component.js +0 -73
- package/esm5/lib/fields/label.component.js +0 -25
- package/esm5/lib/fields/line-break.component.js +0 -23
- package/esm5/lib/fields/link.component.js +0 -24
- package/esm5/lib/fields/list-field.component.js +0 -68
- package/esm5/lib/fields/radio.component.js +0 -22
- package/esm5/lib/fields/select.component.js +0 -59
- package/esm5/lib/fields/select.search.component.js +0 -119
- package/esm5/lib/fields/selection-list.component.js +0 -32
- package/esm5/lib/fields/slide-toggle.component.js +0 -22
- package/esm5/lib/fields/text.component.js +0 -24
- package/esm5/lib/fields/textarea.component.js +0 -25
- package/esm5/lib/forms/button-control.component.js +0 -95
- package/esm5/lib/forms/buttonchecker-control.component.js +0 -37
- package/esm5/lib/forms/buttonfile-control.component.js +0 -119
- package/esm5/lib/interfaces/component.interface.js +0 -1
- package/esm5/lib/interfaces/directive.interface.js +0 -1
- package/esm5/lib/interfaces/field.config.interface.js +0 -1
- package/esm5/lib/interfaces/field.interface.js +0 -1
- package/esm5/lib/interfaces/validator.interface.js +0 -1
- package/esm5/lib/kles-material-dynamicforms.module.js +0 -119
- package/esm5/lib/matcher/form-error.matcher.js +0 -11
- package/esm5/lib/modules/material.module.js +0 -132
- package/esm5/lib/pipe/array.pipe.js +0 -23
- package/esm5/lib/pipe/transform.pipe.js +0 -28
- package/esm5/lib/validators/autocomplete.validator.js +0 -23
- package/esm5/public-api.js +0 -51
- package/fesm2015/3kles-kles-material-dynamicforms.js +0 -2088
- package/fesm2015/3kles-kles-material-dynamicforms.js.map +0 -1
- package/fesm5/3kles-kles-material-dynamicforms.js +0 -1766
- package/fesm5/3kles-kles-material-dynamicforms.js.map +0 -1
- package/lib/interfaces/directive.interface.d.ts +0 -3
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
+
import { Validators } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/forms";
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
import * as i3 from "@angular/flex-layout/flex";
|
|
8
|
+
import * as i4 from "@angular/material/button";
|
|
9
|
+
import * as i5 from "@angular/material/icon";
|
|
10
|
+
import * as i6 from "@angular/material/form-field";
|
|
11
|
+
import * as i7 from "@ngx-translate/core";
|
|
12
|
+
export class KlesFormListFieldComponent extends KlesFieldAbstract {
|
|
13
|
+
constructor(fb) {
|
|
14
|
+
super();
|
|
15
|
+
this.fb = fb;
|
|
16
|
+
}
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
this.formArray = this.group.controls[this.field.name];
|
|
19
|
+
super.ngOnInit();
|
|
20
|
+
}
|
|
21
|
+
createFormGroup() {
|
|
22
|
+
const group = this.fb.group({});
|
|
23
|
+
this.field.collections.forEach(item => {
|
|
24
|
+
const control = this.fb.control(null, this.bindValidations(item.validations || []), this.bindAsyncValidations(item.asyncValidations || []));
|
|
25
|
+
group.addControl(item.name, control);
|
|
26
|
+
});
|
|
27
|
+
return group;
|
|
28
|
+
}
|
|
29
|
+
deleteField(index) {
|
|
30
|
+
this.formArray.removeAt(index);
|
|
31
|
+
}
|
|
32
|
+
addField() {
|
|
33
|
+
this.formArray.push(this.createFormGroup());
|
|
34
|
+
}
|
|
35
|
+
bindValidations(validations) {
|
|
36
|
+
if (validations.length > 0) {
|
|
37
|
+
const validList = [];
|
|
38
|
+
validations.forEach(valid => {
|
|
39
|
+
validList.push(valid.validator);
|
|
40
|
+
});
|
|
41
|
+
return Validators.compose(validList);
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
bindAsyncValidations(validations) {
|
|
46
|
+
if (validations.length > 0) {
|
|
47
|
+
const validList = [];
|
|
48
|
+
validations.forEach(valid => {
|
|
49
|
+
validList.push(valid.validator);
|
|
50
|
+
});
|
|
51
|
+
return Validators.composeAsync(validList);
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
ngOnDestroy() {
|
|
56
|
+
super.ngOnDestroy();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
KlesFormListFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: KlesFormListFieldComponent, deps: [{ token: i1.UntypedFormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
KlesFormListFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: KlesFormListFieldComponent, selector: "kles-form-listfield", usesInheritance: true, ngImport: i0, template: `
|
|
61
|
+
<div [formGroup]="group" class="form-element">
|
|
62
|
+
{{field.label | translate}}
|
|
63
|
+
<button mat-icon-button color="primary" (click)="addField()">
|
|
64
|
+
<mat-icon>add</mat-icon>
|
|
65
|
+
</button>
|
|
66
|
+
|
|
67
|
+
<div class="dynamic-form" [formGroupName]="field.name">
|
|
68
|
+
<div *ngFor="let subGroup of formArray.controls let index = index;" fxLayout="row" fxLayoutGap="5px">
|
|
69
|
+
<ng-container *ngFor="let subfield of field.collections;"
|
|
70
|
+
dynamicField [field]="subfield" [group]="subGroup">
|
|
71
|
+
</ng-container>
|
|
72
|
+
<button mat-icon-button (click)="deleteField(index)" color="primary">
|
|
73
|
+
<mat-icon>delete_outlined</mat-icon>
|
|
74
|
+
</button>
|
|
75
|
+
</div>
|
|
76
|
+
<ng-container *ngFor="let validation of field.validations;" ngProjectAs="mat-error">
|
|
77
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
78
|
+
</ng-container>
|
|
79
|
+
<ng-container *ngFor="let validation of field.asyncValidations;" ngProjectAs="mat-error">
|
|
80
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
81
|
+
</ng-container>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.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.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "component", type: i4.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: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] });
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: KlesFormListFieldComponent, decorators: [{
|
|
86
|
+
type: Component,
|
|
87
|
+
args: [{ selector: 'kles-form-listfield', template: `
|
|
88
|
+
<div [formGroup]="group" class="form-element">
|
|
89
|
+
{{field.label | translate}}
|
|
90
|
+
<button mat-icon-button color="primary" (click)="addField()">
|
|
91
|
+
<mat-icon>add</mat-icon>
|
|
92
|
+
</button>
|
|
93
|
+
|
|
94
|
+
<div class="dynamic-form" [formGroupName]="field.name">
|
|
95
|
+
<div *ngFor="let subGroup of formArray.controls let index = index;" fxLayout="row" fxLayoutGap="5px">
|
|
96
|
+
<ng-container *ngFor="let subfield of field.collections;"
|
|
97
|
+
dynamicField [field]="subfield" [group]="subGroup">
|
|
98
|
+
</ng-container>
|
|
99
|
+
<button mat-icon-button (click)="deleteField(index)" color="primary">
|
|
100
|
+
<mat-icon>delete_outlined</mat-icon>
|
|
101
|
+
</button>
|
|
102
|
+
</div>
|
|
103
|
+
<ng-container *ngFor="let validation of field.validations;" ngProjectAs="mat-error">
|
|
104
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
105
|
+
</ng-container>
|
|
106
|
+
<ng-container *ngFor="let validation of field.asyncValidations;" ngProjectAs="mat-error">
|
|
107
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
108
|
+
</ng-container>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
` }]
|
|
112
|
+
}], ctorParameters: function () { return [{ type: i1.UntypedFormBuilder }]; } });
|
|
113
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uL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b25zLmZvckVhY2godmFsaWQgPT4ge1xuICAgICAgICAgICAgICAgIHZhbGlkTGlzdC5wdXNoKHZhbGlkLnZhbGlkYXRvcik7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHJldHVybiBWYWxpZGF0b3JzLmNvbXBvc2UodmFsaWRMaXN0KTtcblxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuXG4gICAgcHJpdmF0ZSBiaW5kQXN5bmNWYWxpZGF0aW9ucyh2YWxpZGF0aW9uczogSUtsZXNWYWxpZGF0b3I8QXN5bmNWYWxpZGF0b3JGbj5bXSk6IEFzeW5jVmFsaWRhdG9yRm4ge1xuICAgICAgICBpZiAodmFsaWRhdGlvbnMubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgY29uc3QgdmFsaWRMaXN0ID0gW107XG4gICAgICAgICAgICB2YWxpZGF0aW9ucy5mb3JFYWNoKHZhbGlkID0+IHtcbiAgICAgICAgICAgICAgICB2YWxpZExpc3QucHVzaCh2YWxpZC52YWxpZGF0b3IpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICByZXR1cm4gVmFsaWRhdG9ycy5jb21wb3NlQXN5bmModmFsaWRMaXN0KTtcblxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgICAgICBzdXBlci5uZ09uRGVzdHJveSgpO1xuICAgIH1cbn1cblxuIl19
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/forms";
|
|
6
|
+
import * as i3 from "@angular/flex-layout/extended";
|
|
7
|
+
import * as i4 from "@angular/material/form-field";
|
|
8
|
+
import * as i5 from "@angular/material/radio";
|
|
9
|
+
import * as i6 from "@angular/material/tooltip";
|
|
10
|
+
import * as i7 from "@ngx-translate/core";
|
|
11
|
+
export class KlesFormRadioComponent extends KlesFieldAbstract {
|
|
12
|
+
ngOnInit() { super.ngOnInit(); }
|
|
13
|
+
ngOnDestroy() {
|
|
14
|
+
super.ngOnDestroy();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
KlesFormRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: KlesFormRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
KlesFormRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: KlesFormRadioComponent, selector: "kles-form-radiobutton", usesInheritance: true, ngImport: i0, template: `
|
|
19
|
+
<div [formGroup]="group">
|
|
20
|
+
<label class="radio-label-padding">{{field.label}}</label>
|
|
21
|
+
<mat-radio-group matTooltip="{{field.tooltip}}" [attr.id]="field.id" [ngClass]="field.ngClass" [formControlName]="field.name">
|
|
22
|
+
<mat-radio-button *ngFor="let item of field.options" [value]="item">{{item}}</mat-radio-button>
|
|
23
|
+
</mat-radio-group>
|
|
24
|
+
<ng-container *ngFor="let validation of field.validations;" ngProjectAs="mat-error">
|
|
25
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
26
|
+
</ng-container>
|
|
27
|
+
<ng-container *ngFor="let validation of field.asyncValidations;" ngProjectAs="mat-error">
|
|
28
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
29
|
+
</ng-container>
|
|
30
|
+
</div>
|
|
31
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.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: "directive", type: i3.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: i4.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i5.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i5.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i6.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: KlesFormRadioComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{ selector: 'kles-form-radiobutton', template: `
|
|
35
|
+
<div [formGroup]="group">
|
|
36
|
+
<label class="radio-label-padding">{{field.label}}</label>
|
|
37
|
+
<mat-radio-group matTooltip="{{field.tooltip}}" [attr.id]="field.id" [ngClass]="field.ngClass" [formControlName]="field.name">
|
|
38
|
+
<mat-radio-button *ngFor="let item of field.options" [value]="item">{{item}}</mat-radio-button>
|
|
39
|
+
</mat-radio-group>
|
|
40
|
+
<ng-container *ngFor="let validation of field.validations;" ngProjectAs="mat-error">
|
|
41
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
42
|
+
</ng-container>
|
|
43
|
+
<ng-container *ngFor="let validation of field.asyncValidations;" ngProjectAs="mat-error">
|
|
44
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
45
|
+
</ng-container>
|
|
46
|
+
</div>
|
|
47
|
+
` }]
|
|
48
|
+
}] });
|
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2xlcy1tYXRlcmlhbC1keW5hbWljZm9ybXMvc3JjL2xpYi9maWVsZHMvcmFkaW8uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBQzdELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7Ozs7QUFvQnJELE1BQU0sT0FBTyxzQkFBdUIsU0FBUSxpQkFBaUI7SUFFekQsUUFBUSxLQUFLLEtBQUssQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFFaEMsV0FBVztRQUNQLEtBQUssQ0FBQyxXQUFXLEVBQUUsQ0FBQztJQUN4QixDQ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dC1lcnJvclwiPlxuICAgICAgICAgICAgICAgIDxtYXQtZXJyb3IgKm5nSWY9XCJncm91cC5nZXQoZmllbGQubmFtZSkuaGFzRXJyb3IodmFsaWRhdGlvbi5uYW1lKVwiPnt7dmFsaWRhdGlvbi5tZXNzYWdlIHwgdHJhbnNsYXRlfX08L21hdC1lcnJvcj5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdGb3I9XCJsZXQgdmFsaWRhdGlvbiBvZiBmaWVsZC5hc3luY1ZhbGlkYXRpb25zO1wiIG5nUHJvamVjdEFzPVwibWF0LWVycm9yXCI+XG4gICAgICAgICAgICAgICAgPG1hdC1lcnJvciAqbmdJZj1cImdyb3VwLmdldChmaWVsZC5uYW1lKS5oYXNFcnJvcih2YWxpZGF0aW9uLm5hbWUpXCI+e3t2YWxpZGF0aW9uLm1lc3NhZ2UgfCB0cmFuc2xhdGV9fTwvbWF0LWVycm9yPlxuICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgPC9kaXY+XG5gLFxuICAgIHN0eWxlczogW11cbn0pXG5leHBvcnQgY2xhc3MgS2xlc0Zvcm1SYWRpb0NvbXBvbmVudCBleHRlbmRzIEtsZXNGaWVsZEFic3RyYWN0IGltcGxlbWVudHMgT25Jbml0LCBPbkRlc3Ryb3kge1xuXG4gICAgbmdPbkluaXQoKSB7IHN1cGVyLm5nT25Jbml0KCk7IH1cblxuICAgIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgICAgICBzdXBlci5uZ09uRGVzdHJveSgpO1xuICAgIH1cbn0iXX0=
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
3
|
+
import { Component, ViewChild, ViewChildren } from '@angular/core';
|
|
4
|
+
import { MatOption } from '@angular/material/core';
|
|
5
|
+
import { Observable, of } from 'rxjs';
|
|
6
|
+
import { FieldMapper } from '../decorators/component.decorator';
|
|
7
|
+
import { EnumType } from '../enums/type.enum';
|
|
8
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@angular/common";
|
|
11
|
+
import * as i2 from "@angular/forms";
|
|
12
|
+
import * as i3 from "@angular/flex-layout/extended";
|
|
13
|
+
import * as i4 from "@angular/material/form-field";
|
|
14
|
+
import * as i5 from "@angular/material/select";
|
|
15
|
+
import * as i6 from "@angular/material/core";
|
|
16
|
+
import * as i7 from "@angular/material/tooltip";
|
|
17
|
+
import * as i8 from "@angular/cdk/scrolling";
|
|
18
|
+
import * as i9 from "../directive/dynamic-component.directive";
|
|
19
|
+
import * as i10 from "@ngx-translate/core";
|
|
20
|
+
import * as i11 from "../pipe/transform.pipe";
|
|
21
|
+
let KlesFormSelectComponent = class KlesFormSelectComponent extends KlesFieldAbstract {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.compareFn = (o1, o2) => {
|
|
25
|
+
if (this.field.property && o1 && o2) {
|
|
26
|
+
return o1[this.field.property] === o2[this.field.property];
|
|
27
|
+
}
|
|
28
|
+
return o1 === o2;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
ngOnInit() {
|
|
32
|
+
super.ngOnInit();
|
|
33
|
+
if (!(this.field.options instanceof Observable)) {
|
|
34
|
+
this.options$ = of(this.field.options);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this.options$ = this.field.options;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
ngOnDestroy() {
|
|
41
|
+
super.ngOnDestroy();
|
|
42
|
+
}
|
|
43
|
+
openChange($event) {
|
|
44
|
+
if (this.field.virtualScroll) {
|
|
45
|
+
if ($event) {
|
|
46
|
+
this.cdkVirtualScrollViewport.scrollToIndex(0);
|
|
47
|
+
this.cdkVirtualScrollViewport.checkViewportSize();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
KlesFormSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: KlesFormSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
KlesFormSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", type: KlesFormSelectComponent, selector: "kles-form-select", viewQueries: [{ propertyName: "cdkVirtualScrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "options", predicate: MatOption, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
54
|
+
<mat-form-field class="margin-top" [color]="field.color" [formGroup]="group">
|
|
55
|
+
<mat-select matTooltip="{{field.tooltip}}" [attr.id]="field.id"
|
|
56
|
+
(openedChange)="openChange($event)" [compareWith]="compareFn"
|
|
57
|
+
[ngClass]="field.ngClass" [placeholder]="field.placeholder | translate" [formControlName]="field.name" [multiple]="field.multiple">
|
|
58
|
+
<mat-select-trigger *ngIf="field.triggerComponent">
|
|
59
|
+
<ng-container klesComponent [component]="field.triggerComponent" [value]="group.controls[field.name].value" [field]="field"></ng-container>
|
|
60
|
+
</mat-select-trigger>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
<ng-container *ngIf="!field.virtualScroll">
|
|
64
|
+
<ng-container *ngIf="!field.autocompleteComponent">
|
|
65
|
+
<mat-option *ngFor="let item of options$ | async" [value]="item" [disabled]="item?.disabled">{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}</mat-option>
|
|
66
|
+
</ng-container>
|
|
67
|
+
|
|
68
|
+
<ng-container *ngIf="field.autocompleteComponent">
|
|
69
|
+
<mat-option *ngFor="let item of options$ | async" [value]="item" [disabled]="item?.disabled">
|
|
70
|
+
<ng-container klesComponent [component]="field.autocompleteComponent" [value]="item" [field]="field"></ng-container>
|
|
71
|
+
</mat-option>
|
|
72
|
+
</ng-container>
|
|
73
|
+
</ng-container>
|
|
74
|
+
|
|
75
|
+
<ng-container *ngIf="field.virtualScroll">
|
|
76
|
+
<cdk-virtual-scroll-viewport [itemSize]="field.itemSize || 50" [style.height.px]=5*48>
|
|
77
|
+
<ng-container *ngIf="!field.autocompleteComponent">
|
|
78
|
+
<mat-option *cdkVirtualFor="let item of options$ | async" [value]="item" [disabled]="item?.disabled">
|
|
79
|
+
{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}
|
|
80
|
+
</mat-option>
|
|
81
|
+
|
|
82
|
+
<ng-container *ngIf="field.multiple">
|
|
83
|
+
<mat-option *ngFor="let item of group.controls[field.name].value | slice:0:30" [value]="item"
|
|
84
|
+
style="display:none">
|
|
85
|
+
{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}
|
|
86
|
+
</mat-option>
|
|
87
|
+
</ng-container>
|
|
88
|
+
|
|
89
|
+
<ng-container *ngIf="!field.multiple && group.controls[field.name].value">
|
|
90
|
+
<mat-option *ngFor="let item of [group?.controls[field.name]?.value]" [value]="item" style="display:none">
|
|
91
|
+
{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}
|
|
92
|
+
</mat-option>
|
|
93
|
+
</ng-container>
|
|
94
|
+
</ng-container>
|
|
95
|
+
|
|
96
|
+
<ng-container *ngIf="field.autocompleteComponent">
|
|
97
|
+
<mat-option *cdkVirtualFor="let item of options$ | async" [value]="item" [disabled]="item?.disabled">
|
|
98
|
+
<ng-container klesComponent [component]="field.autocompleteComponent" [value]="item" [field]="field"></ng-container>
|
|
99
|
+
</mat-option>
|
|
100
|
+
<ng-container *ngIf="field.multiple">
|
|
101
|
+
<mat-option *ngFor="let item of group.controls[field.name].value | slice:0:30" [value]="item"
|
|
102
|
+
style="display:none">
|
|
103
|
+
<ng-container klesComponent [component]="field.autocompleteComponent" [value]="item" [field]="field"></ng-container>
|
|
104
|
+
</mat-option>
|
|
105
|
+
</ng-container>
|
|
106
|
+
<ng-container *ngIf="!field.multiple && group.controls[field.name].value">
|
|
107
|
+
<mat-option *ngFor="let item of [group?.controls[field.name]?.value]" [value]="item" style="display:none">
|
|
108
|
+
<ng-container klesComponent [component]="field.autocompleteComponent" [value]="item" [field]="field"></ng-container>
|
|
109
|
+
</mat-option>
|
|
110
|
+
</ng-container>
|
|
111
|
+
</ng-container>
|
|
112
|
+
</cdk-virtual-scroll-viewport>
|
|
113
|
+
|
|
114
|
+
</ng-container>
|
|
115
|
+
|
|
116
|
+
</mat-select>
|
|
117
|
+
<ng-container *ngFor="let validation of field.validations;" ngProjectAs="mat-error">
|
|
118
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
119
|
+
</ng-container>
|
|
120
|
+
<ng-container *ngFor="let validation of field.asyncValidations;" ngProjectAs="mat-error">
|
|
121
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
122
|
+
</ng-container>
|
|
123
|
+
</mat-form-field>
|
|
124
|
+
`, isInline: true, styles: ["mat-form-field{width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.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: "directive", type: i3.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: i4.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "directive", type: i5.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i6.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "directive", type: i8.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i8.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i8.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i9.KlesComponentDirective, selector: "[klesComponent]", inputs: ["component", "value", "field"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.SlicePipe, name: "slice" }, { kind: "pipe", type: i10.TranslatePipe, name: "translate" }, { kind: "pipe", type: i11.KlesTransformPipe, name: "klesTransform" }] });
|
|
125
|
+
KlesFormSelectComponent = __decorate([
|
|
126
|
+
FieldMapper({ type: EnumType.select })
|
|
127
|
+
], KlesFormSelectComponent);
|
|
128
|
+
export { KlesFormSelectComponent };
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: KlesFormSelectComponent, decorators: [{
|
|
130
|
+
type: Component,
|
|
131
|
+
args: [{ selector: 'kles-form-select', template: `
|
|
132
|
+
<mat-form-field class="margin-top" [color]="field.color" [formGroup]="group">
|
|
133
|
+
<mat-select matTooltip="{{field.tooltip}}" [attr.id]="field.id"
|
|
134
|
+
(openedChange)="openChange($event)" [compareWith]="compareFn"
|
|
135
|
+
[ngClass]="field.ngClass" [placeholder]="field.placeholder | translate" [formControlName]="field.name" [multiple]="field.multiple">
|
|
136
|
+
<mat-select-trigger *ngIf="field.triggerComponent">
|
|
137
|
+
<ng-container klesComponent [component]="field.triggerComponent" [value]="group.controls[field.name].value" [field]="field"></ng-container>
|
|
138
|
+
</mat-select-trigger>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<ng-container *ngIf="!field.virtualScroll">
|
|
142
|
+
<ng-container *ngIf="!field.autocompleteComponent">
|
|
143
|
+
<mat-option *ngFor="let item of options$ | async" [value]="item" [disabled]="item?.disabled">{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}</mat-option>
|
|
144
|
+
</ng-container>
|
|
145
|
+
|
|
146
|
+
<ng-container *ngIf="field.autocompleteComponent">
|
|
147
|
+
<mat-option *ngFor="let item of options$ | async" [value]="item" [disabled]="item?.disabled">
|
|
148
|
+
<ng-container klesComponent [component]="field.autocompleteComponent" [value]="item" [field]="field"></ng-container>
|
|
149
|
+
</mat-option>
|
|
150
|
+
</ng-container>
|
|
151
|
+
</ng-container>
|
|
152
|
+
|
|
153
|
+
<ng-container *ngIf="field.virtualScroll">
|
|
154
|
+
<cdk-virtual-scroll-viewport [itemSize]="field.itemSize || 50" [style.height.px]=5*48>
|
|
155
|
+
<ng-container *ngIf="!field.autocompleteComponent">
|
|
156
|
+
<mat-option *cdkVirtualFor="let item of options$ | async" [value]="item" [disabled]="item?.disabled">
|
|
157
|
+
{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}
|
|
158
|
+
</mat-option>
|
|
159
|
+
|
|
160
|
+
<ng-container *ngIf="field.multiple">
|
|
161
|
+
<mat-option *ngFor="let item of group.controls[field.name].value | slice:0:30" [value]="item"
|
|
162
|
+
style="display:none">
|
|
163
|
+
{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}
|
|
164
|
+
</mat-option>
|
|
165
|
+
</ng-container>
|
|
166
|
+
|
|
167
|
+
<ng-container *ngIf="!field.multiple && group.controls[field.name].value">
|
|
168
|
+
<mat-option *ngFor="let item of [group?.controls[field.name]?.value]" [value]="item" style="display:none">
|
|
169
|
+
{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}
|
|
170
|
+
</mat-option>
|
|
171
|
+
</ng-container>
|
|
172
|
+
</ng-container>
|
|
173
|
+
|
|
174
|
+
<ng-container *ngIf="field.autocompleteComponent">
|
|
175
|
+
<mat-option *cdkVirtualFor="let item of options$ | async" [value]="item" [disabled]="item?.disabled">
|
|
176
|
+
<ng-container klesComponent [component]="field.autocompleteComponent" [value]="item" [field]="field"></ng-container>
|
|
177
|
+
</mat-option>
|
|
178
|
+
<ng-container *ngIf="field.multiple">
|
|
179
|
+
<mat-option *ngFor="let item of group.controls[field.name].value | slice:0:30" [value]="item"
|
|
180
|
+
style="display:none">
|
|
181
|
+
<ng-container klesComponent [component]="field.autocompleteComponent" [value]="item" [field]="field"></ng-container>
|
|
182
|
+
</mat-option>
|
|
183
|
+
</ng-container>
|
|
184
|
+
<ng-container *ngIf="!field.multiple && group.controls[field.name].value">
|
|
185
|
+
<mat-option *ngFor="let item of [group?.controls[field.name]?.value]" [value]="item" style="display:none">
|
|
186
|
+
<ng-container klesComponent [component]="field.autocompleteComponent" [value]="item" [field]="field"></ng-container>
|
|
187
|
+
</mat-option>
|
|
188
|
+
</ng-container>
|
|
189
|
+
</ng-container>
|
|
190
|
+
</cdk-virtual-scroll-viewport>
|
|
191
|
+
|
|
192
|
+
</ng-container>
|
|
193
|
+
|
|
194
|
+
</mat-select>
|
|
195
|
+
<ng-container *ngFor="let validation of field.validations;" ngProjectAs="mat-error">
|
|
196
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
197
|
+
</ng-container>
|
|
198
|
+
<ng-container *ngFor="let validation of field.asyncValidations;" ngProjectAs="mat-error">
|
|
199
|
+
<mat-error *ngIf="group.get(field.name).hasError(validation.name)">{{validation.message | translate}}</mat-error>
|
|
200
|
+
</ng-container>
|
|
201
|
+
</mat-form-field>
|
|
202
|
+
`, styles: ["mat-form-field{width:100%}\n"] }]
|
|
203
|
+
}], ctorParameters: function () { return []; }, propDecorators: { cdkVirtualScrollViewport: [{
|
|
204
|
+
type: ViewChild,
|
|
205
|
+
args: [CdkVirtualScrollViewport]
|
|
206
|
+
}], options: [{
|
|
207
|
+
type: ViewChildren,
|
|
208
|
+
args: [MatOption]
|
|
209
|
+
}] } });
|
|
210
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tsZXMtbWF0ZXJpYWwtZHluYW1pY2Zvcm1zL3NyYy9saWIvZmllbGRzL3NlbGVjdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSx3QkFBd0IsRUFBb0IsTUFBTSx3QkFBd0IsQ0FBQztBQUNwRixPQUFPLEVBQW9DLFNBQVMsRUFBZ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5kaXNhYmxlZFwiPlxuICAgICAgICAgICAgICAgICAgICB7eyhmaWVsZC5wcm9wZXJ0eSA/IGl0ZW1bZmllbGQucHJvcGVydHldIDogaXRlbSkgfCBrbGVzVHJhbnNmb3JtOmZpZWxkLnBpcGVUcmFuc2Zvcm19fVxuICAgICAgICAgICAgICAgICAgICA8L21hdC1vcHRpb24+XG5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImZpZWxkLm11bHRpcGxlXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LW9wdGlvbiAqbmdGb3I9XCJsZXQgaXRlbSBvZiBncm91cC5jb250cm9sc1tmaWVsZC5uYW1lXS52YWx1ZSB8IHNsaWNlOjA6MzBcIiBbdmFsdWVdPVwiaXRlbVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBzdHlsZT1cImRpc3BsYXk6bm9uZVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7KGZpZWxkLnByb3BlcnR5ID8gaXRlbVtmaWVsZC5wcm9wZXJ0eV0gOiBpdGVtKSB8IGtsZXNUcmFuc2Zvcm06ZmllbGQucGlwZVRyYW5zZm9ybX19XG4gICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1vcHRpb24+XG4gICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhZmllbGQubXVsdGlwbGUgJiYgZ3JvdXAuY29udHJvbHNbZmllbGQubmFtZV0udmFsdWVcIj5cbiAgICAgICAgICAgICAgICAgICAgPG1hdC1vcHRpb24gKm5nRm9yPVwibGV0IGl0ZW0gb2YgW2dyb3VwPy5jb250cm9sc1tmaWVsZC5uYW1lXT8udmFsdWVdXCIgW3ZhbHVlXT1cIml0ZW1cIiBzdHlsZT1cImRpc3BsYXk6bm9uZVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7KGZpZWxkLnByb3BlcnR5ID8gaXRlbVtmaWVsZC5wcm9wZXJ0eV0gOiBpdGVtKSB8IGtsZXNUcmFuc2Zvcm06ZmllbGQucGlwZVRyYW5zZm9ybX19XG4gICAgICAgICAgICAgICAgICAgICAgICA8L21hdC1vcHRpb24+XG4gICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImZpZWxkLmF1dG9jb21wbGV0ZUNvbXBvbmVudFwiPlxuICAgICAgICAgICAgICAgICAgICA8bWF0LW9wdGlvbiAqY2RrVmlydHVhbEZvcj1cImxldCBpdGVtIG9mIG9wdGlvbnMkIHwgYXN5bmNcIiBbdmFsdWVdPVwiaXRlbVwiIFtkaXNhYmxlZF09XCJpdGVtPy5kaXNhYmxlZFwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciBrbGVzQ29tcG9uZW50IFtjb21wb25lbnRdPVwiZmllbGQuYXV0b2NvbXBsZXRlQ29tcG9uZW50XCIgW3ZhbHVlXT1cIml0ZW1cIiBbZmllbGRdPVwiZmllbGRcIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgPC9tYXQtb3B0aW9uPlxuICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZmllbGQubXVsdGlwbGVcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtb3B0aW9uICpuZ0Zvcj1cImxldCBpdGVtIG9mIGdyb3VwLmNvbnRyb2xzW2ZpZWxkLm5hbWVdLnZhbHVlIHwgc2xpY2U6MDozMFwiIFt2YWx1ZV09XCJpdGVtXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIHN0eWxlPVwiZGlzcGxheTpub25lXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciBrbGVzQ29tcG9uZW50IFtjb21wb25lbnRdPVwiZmllbGQuYXV0b2NvbXBsZXRlQ29tcG9uZW50XCIgW3ZhbHVlXT1cIml0ZW1cIiBbZmllbGRdPVwiZmllbGRcIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LW9wdGlvbj5cbiAgICAgICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhZmllbGQubXVsdGlwbGUgJiYgZ3JvdXAuY29udHJvbHNbZmllbGQubmFtZV0udmFsdWVcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtb3B0aW9uICpuZ0Zvcj1cImxldCBpdGVtIG9mIFtncm91cD8uY29udHJvbHNbZmllbGQubmFtZV0/LnZhbHVlXVwiIFt2YWx1ZV09XCJpdGVtXCIgc3R5bGU9XCJkaXNwbGF5Om5vbmVcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyIGtsZXNDb21wb25lbnQgW2NvbXBvbmVudF09XCJmaWVsZC5hdXRvY29tcGxldGVDb21wb25lbnRcIiBbdmFsdWVdPVwiaXRlbVwiIFtmaWVsZF09XCJmaWVsZFwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9tYXQtb3B0aW9uPlxuICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgIDwvY2RrLXZpcnR1YWwtc2Nyb2xsLXZpZXdwb3J0PlxuXG4gICAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICAgIDwvbWF0LXNlbGVjdD5cbiAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdGb3I9XCJsZXQgdmFsaWRhdGlvbiBvZiBmaWVsZC52YWxpZGF0aW9ucztcIiBuZ1Byb2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