@3kles/kles-material-dynamicforms 14.0.4 → 14.0.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/README.md +24 -24
- package/esm2020/3kles-kles-material-dynamicforms.mjs +4 -4
- package/esm2020/lib/decorators/component.decorator.mjs +7 -7
- package/esm2020/lib/directive/dynamic-component.directive.mjs +44 -44
- package/esm2020/lib/directive/dynamic-field.directive.mjs +50 -50
- package/esm2020/lib/dynamic-form.component.mjs +287 -251
- package/esm2020/lib/enums/type.enum.mjs +19 -19
- package/esm2020/lib/fields/array.component.mjs +57 -57
- package/esm2020/lib/fields/badge.component.mjs +40 -40
- package/esm2020/lib/fields/button-form.component.mjs +44 -44
- package/esm2020/lib/fields/button-submit.component.mjs +38 -38
- package/esm2020/lib/fields/button-toogle-group.component.mjs +51 -51
- package/esm2020/lib/fields/buttonchecker-form.component.mjs +44 -44
- package/esm2020/lib/fields/buttonfile-form.component.mjs +42 -42
- package/esm2020/lib/fields/checkbox.component.mjs +50 -50
- package/esm2020/lib/fields/chip.component.mjs +41 -41
- package/esm2020/lib/fields/color.component.mjs +84 -84
- package/esm2020/lib/fields/date.component.mjs +52 -52
- package/esm2020/lib/fields/field.abstract.mjs +66 -66
- package/esm2020/lib/fields/group.component.mjs +48 -48
- package/esm2020/lib/fields/icon.component.mjs +28 -28
- package/esm2020/lib/fields/input.clearable.component.mjs +112 -112
- package/esm2020/lib/fields/input.component.mjs +158 -158
- package/esm2020/lib/fields/label.component.mjs +40 -40
- package/esm2020/lib/fields/line-break.component.mjs +23 -23
- package/esm2020/lib/fields/link.component.mjs +32 -32
- package/esm2020/lib/fields/list-field.component.mjs +114 -114
- package/esm2020/lib/fields/radio.component.mjs +49 -49
- package/esm2020/lib/fields/select.component.mjs +268 -211
- package/esm2020/lib/fields/select.search.component.mjs +357 -307
- package/esm2020/lib/fields/selection-list.component.mjs +63 -63
- package/esm2020/lib/fields/slide-toggle.component.mjs +43 -43
- package/esm2020/lib/fields/text.component.mjs +40 -40
- package/esm2020/lib/fields/textarea.component.mjs +56 -56
- package/esm2020/lib/forms/button-control.component.mjs +115 -115
- package/esm2020/lib/forms/buttonchecker-control.component.mjs +85 -85
- package/esm2020/lib/forms/buttonfile-control.component.mjs +118 -118
- package/esm2020/lib/interfaces/component.interface.mjs +2 -2
- package/esm2020/lib/interfaces/directive.interface.mjs +2 -2
- package/esm2020/lib/interfaces/field.config.interface.mjs +2 -2
- package/esm2020/lib/interfaces/field.interface.mjs +2 -2
- package/esm2020/lib/interfaces/validator.interface.mjs +2 -2
- package/esm2020/lib/kles-material-dynamicforms.module.mjs +196 -196
- package/esm2020/lib/matcher/form-error.matcher.mjs +16 -16
- package/esm2020/lib/modules/material.module.mjs +278 -278
- package/esm2020/lib/pipe/array.pipe.mjs +22 -22
- package/esm2020/lib/pipe/transform.pipe.mjs +27 -27
- package/esm2020/lib/validators/autocomplete.validator.mjs +23 -23
- package/esm2020/public-api.mjs +59 -59
- package/fesm2015/3kles-kles-material-dynamicforms.mjs +2843 -2705
- package/fesm2015/3kles-kles-material-dynamicforms.mjs.map +1 -1
- package/fesm2020/3kles-kles-material-dynamicforms.mjs +2839 -2701
- package/fesm2020/3kles-kles-material-dynamicforms.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/decorators/component.decorator.d.ts +8 -8
- package/lib/directive/dynamic-component.directive.d.ts +16 -16
- package/lib/directive/dynamic-field.directive.d.ts +18 -18
- package/lib/dynamic-form.component.d.ts +32 -31
- package/lib/enums/type.enum.d.ts +17 -17
- package/lib/fields/array.component.d.ts +11 -11
- package/lib/fields/badge.component.d.ts +9 -9
- package/lib/fields/button-form.component.d.ts +9 -9
- package/lib/fields/button-submit.component.d.ts +9 -9
- package/lib/fields/button-toogle-group.component.d.ts +11 -11
- package/lib/fields/buttonchecker-form.component.d.ts +9 -9
- package/lib/fields/buttonfile-form.component.d.ts +9 -9
- package/lib/fields/checkbox.component.d.ts +9 -9
- package/lib/fields/chip.component.d.ts +9 -9
- package/lib/fields/color.component.d.ts +10 -10
- package/lib/fields/date.component.d.ts +9 -9
- package/lib/fields/field.abstract.d.ts +21 -21
- package/lib/fields/group.component.d.ts +11 -11
- package/lib/fields/icon.component.d.ts +9 -9
- package/lib/fields/input.clearable.component.d.ts +8 -8
- package/lib/fields/input.component.d.ts +15 -15
- package/lib/fields/label.component.d.ts +9 -9
- package/lib/fields/line-break.component.d.ts +9 -9
- package/lib/fields/link.component.d.ts +9 -9
- package/lib/fields/list-field.component.d.ts +19 -19
- package/lib/fields/radio.component.d.ts +9 -9
- package/lib/fields/select.component.d.ts +20 -19
- package/lib/fields/select.search.component.d.ts +23 -22
- package/lib/fields/selection-list.component.d.ts +11 -11
- package/lib/fields/slide-toggle.component.d.ts +9 -9
- package/lib/fields/text.component.d.ts +9 -9
- package/lib/fields/textarea.component.d.ts +9 -9
- package/lib/forms/button-control.component.d.ts +36 -36
- package/lib/forms/buttonchecker-control.component.d.ts +14 -14
- package/lib/forms/buttonfile-control.component.d.ts +20 -20
- package/lib/interfaces/component.interface.d.ts +5 -5
- package/lib/interfaces/directive.interface.d.ts +3 -3
- package/lib/interfaces/field.config.interface.d.ts +59 -58
- package/lib/interfaces/field.interface.d.ts +7 -7
- package/lib/interfaces/validator.interface.d.ts +5 -5
- package/lib/kles-material-dynamicforms.module.d.ts +56 -56
- package/lib/matcher/form-error.matcher.d.ts +9 -9
- package/lib/modules/material.module.d.ts +42 -42
- package/lib/pipe/array.pipe.d.ts +7 -7
- package/lib/pipe/transform.pipe.d.ts +10 -10
- package/lib/validators/autocomplete.validator.d.ts +3 -3
- package/package.json +1 -3
- package/public-api.d.ts +54 -54
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export var EnumType;
|
|
2
|
-
(function (EnumType) {
|
|
3
|
-
EnumType["input"] = "input";
|
|
4
|
-
EnumType["select"] = "select";
|
|
5
|
-
EnumType["text"] = "text";
|
|
6
|
-
EnumType["button"] = "button";
|
|
7
|
-
EnumType["checkbox"] = "checkbox";
|
|
8
|
-
EnumType["number"] = "number";
|
|
9
|
-
EnumType["time"] = "time";
|
|
10
|
-
EnumType["date"] = "date";
|
|
11
|
-
EnumType["color"] = "color";
|
|
12
|
-
EnumType["list"] = "list";
|
|
13
|
-
EnumType["multi"] = "multi";
|
|
14
|
-
EnumType["array"] = "array";
|
|
15
|
-
EnumType["group"] = "group";
|
|
16
|
-
EnumType["lineBreak"] = "lineBreak";
|
|
17
|
-
EnumType["badge"] = "badge";
|
|
18
|
-
})(EnumType || (EnumType = {}));
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export var EnumType;
|
|
2
|
+
(function (EnumType) {
|
|
3
|
+
EnumType["input"] = "input";
|
|
4
|
+
EnumType["select"] = "select";
|
|
5
|
+
EnumType["text"] = "text";
|
|
6
|
+
EnumType["button"] = "button";
|
|
7
|
+
EnumType["checkbox"] = "checkbox";
|
|
8
|
+
EnumType["number"] = "number";
|
|
9
|
+
EnumType["time"] = "time";
|
|
10
|
+
EnumType["date"] = "date";
|
|
11
|
+
EnumType["color"] = "color";
|
|
12
|
+
EnumType["list"] = "list";
|
|
13
|
+
EnumType["multi"] = "multi";
|
|
14
|
+
EnumType["array"] = "array";
|
|
15
|
+
EnumType["group"] = "group";
|
|
16
|
+
EnumType["lineBreak"] = "lineBreak";
|
|
17
|
+
EnumType["badge"] = "badge";
|
|
18
|
+
})(EnumType || (EnumType = {}));
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2xlcy1tYXRlcmlhbC1keW5hbWljZm9ybXMvc3JjL2xpYi9lbnVtcy90eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksUUFnQlg7QUFoQkQsV0FBWSxRQUFRO0lBQ2hCLDJCQUFlLENBQUE7SUFDZiw2QkFBaUIsQ0FBQTtJQUNqQix5QkFBYSxDQUFBO0lBQ2IsNkJBQWlCLENBQUE7SUFDakIsaUNBQXFCLENBQUE7SUFDckIsNkJBQWlCLENBQUE7SUFDakIseUJBQWEsQ0FBQTtJQUNiLHlCQUFhLENBQUE7SUFDYiwyQkFBZSxDQUFBO0lBQ2YseUJBQWEsQ0FBQTtJQUNiLDJCQUFlLENBQUE7SUFDZiwyQkFBZSxDQUFBO0lBQ2YsMkJBQWUsQ0FBQTtJQUNmLG1DQUF1QixDQUFBO0lBQ3ZCLDJCQUFlLENBQUE7QUFDbkIsQ0FBQyxFQWhCVyxRQUFRLEtBQVIsUUFBUSxRQWdCbkIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBFbnVtVHlwZSB7XG4gICAgaW5wdXQgPSAnaW5wdXQnLFxuICAgIHNlbGVjdCA9ICdzZWxlY3QnLFxuICAgIHRleHQgPSAndGV4dCcsXG4gICAgYnV0dG9uID0gJ2J1dHRvbicsXG4gICAgY2hlY2tib3ggPSAnY2hlY2tib3gnLFxuICAgIG51bWJlciA9ICdudW1iZXInLFxuICAgIHRpbWUgPSAndGltZScsXG4gICAgZGF0ZSA9ICdkYXRlJyxcbiAgICBjb2xvciA9ICdjb2xvcicsXG4gICAgbGlzdCA9ICdsaXN0JyxcbiAgICBtdWx0aSA9ICdtdWx0aScsXG4gICAgYXJyYXkgPSAnYXJyYXknLFxuICAgIGdyb3VwID0gJ2dyb3VwJyxcbiAgICBsaW5lQnJlYWsgPSAnbGluZUJyZWFrJyxcbiAgICBiYWRnZSA9ICdiYWRnZSdcbn0iXX0=
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Component } from '@angular/core';
|
|
3
|
-
import { FieldMapper } from '../decorators/component.decorator';
|
|
4
|
-
import { EnumType } from '../enums/type.enum';
|
|
5
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/common";
|
|
8
|
-
import * as i2 from "@angular/forms";
|
|
9
|
-
import * as i3 from "@angular/flex-layout/extended";
|
|
10
|
-
import * as i4 from "../directive/dynamic-field.directive";
|
|
11
|
-
let KlesFormArrayComponent = class KlesFormArrayComponent extends KlesFieldAbstract {
|
|
12
|
-
ngOnInit() {
|
|
13
|
-
// this.subGroup = this.group.controls[this.field.name] as FormGroup;
|
|
14
|
-
super.ngOnInit();
|
|
15
|
-
this.formArray = this.group.controls[this.field.name];
|
|
16
|
-
}
|
|
17
|
-
ngOnDestroy() {
|
|
18
|
-
super.ngOnDestroy();
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
KlesFormArrayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
22
|
-
KlesFormArrayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.
|
|
23
|
-
<div [formGroup]="group">
|
|
24
|
-
<ng-container [formArrayName]="field.name">
|
|
25
|
-
<div class="group-container" *ngFor="let subGroup of formArray.controls let index = index;"
|
|
26
|
-
[ngClass]="field.direction === 'column' ? 'column': 'row'">
|
|
27
|
-
<ng-container *ngFor="let subfield of field.collections;">
|
|
28
|
-
<ng-container *ngIf="subfield.visible !== false"
|
|
29
|
-
klesDynamicField [field]="subfield" [group]="subGroup" [siblingFields]="field.collections">
|
|
30
|
-
</ng-container>
|
|
31
|
-
</ng-container>
|
|
32
|
-
</div>
|
|
33
|
-
</ng-container>
|
|
34
|
-
</div>
|
|
35
|
-
`, isInline: true, styles: ["mat-form-field{width:100%}\n", ":host{display:flex;flex-direction:inherit}\n", ".group-container{display:flex;flex-direction:inherit}\n", ".row{gap:10px;flex-direction:row}\n", ".column{flex-direction:column;gap:0px}\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.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.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { 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.KlesDynamicFieldDirective, selector: "[klesDynamicField]", inputs: ["field", "group", "siblingFields"] }] });
|
|
36
|
-
KlesFormArrayComponent = __decorate([
|
|
37
|
-
FieldMapper({ type: EnumType.array })
|
|
38
|
-
], KlesFormArrayComponent);
|
|
39
|
-
export { KlesFormArrayComponent };
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
41
|
-
type: Component,
|
|
42
|
-
args: [{ selector: 'kles-array', template: `
|
|
43
|
-
<div [formGroup]="group">
|
|
44
|
-
<ng-container [formArrayName]="field.name">
|
|
45
|
-
<div class="group-container" *ngFor="let subGroup of formArray.controls let index = index;"
|
|
46
|
-
[ngClass]="field.direction === 'column' ? 'column': 'row'">
|
|
47
|
-
<ng-container *ngFor="let subfield of field.collections;">
|
|
48
|
-
<ng-container *ngIf="subfield.visible !== false"
|
|
49
|
-
klesDynamicField [field]="subfield" [group]="subGroup" [siblingFields]="field.collections">
|
|
50
|
-
</ng-container>
|
|
51
|
-
</ng-container>
|
|
52
|
-
</div>
|
|
53
|
-
</ng-container>
|
|
54
|
-
</div>
|
|
55
|
-
`, styles: ["mat-form-field{width:100%}\n", ":host{display:flex;flex-direction:inherit}\n", ".group-container{display:flex;flex-direction:inherit}\n", ".row{gap:10px;flex-direction:row}\n", ".column{flex-direction:column;gap:0px}\n"] }]
|
|
56
|
-
}] });
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import { FieldMapper } from '../decorators/component.decorator';
|
|
4
|
+
import { EnumType } from '../enums/type.enum';
|
|
5
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/common";
|
|
8
|
+
import * as i2 from "@angular/forms";
|
|
9
|
+
import * as i3 from "@angular/flex-layout/extended";
|
|
10
|
+
import * as i4 from "../directive/dynamic-field.directive";
|
|
11
|
+
let KlesFormArrayComponent = class KlesFormArrayComponent extends KlesFieldAbstract {
|
|
12
|
+
ngOnInit() {
|
|
13
|
+
// this.subGroup = this.group.controls[this.field.name] as FormGroup;
|
|
14
|
+
super.ngOnInit();
|
|
15
|
+
this.formArray = this.group.controls[this.field.name];
|
|
16
|
+
}
|
|
17
|
+
ngOnDestroy() {
|
|
18
|
+
super.ngOnDestroy();
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
KlesFormArrayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KlesFormArrayComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
KlesFormArrayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: KlesFormArrayComponent, selector: "kles-array", usesInheritance: true, ngImport: i0, template: `
|
|
23
|
+
<div [formGroup]="group">
|
|
24
|
+
<ng-container [formArrayName]="field.name">
|
|
25
|
+
<div class="group-container" *ngFor="let subGroup of formArray.controls let index = index;"
|
|
26
|
+
[ngClass]="field.direction === 'column' ? 'column': 'row'">
|
|
27
|
+
<ng-container *ngFor="let subfield of field.collections;">
|
|
28
|
+
<ng-container *ngIf="subfield.visible !== false"
|
|
29
|
+
klesDynamicField [field]="subfield" [group]="subGroup" [siblingFields]="field.collections">
|
|
30
|
+
</ng-container>
|
|
31
|
+
</ng-container>
|
|
32
|
+
</div>
|
|
33
|
+
</ng-container>
|
|
34
|
+
</div>
|
|
35
|
+
`, isInline: true, styles: ["mat-form-field{width:100%}\n", ":host{display:flex;flex-direction:inherit}\n", ".group-container{display:flex;flex-direction:inherit}\n", ".row{gap:10px;flex-direction:row}\n", ".column{flex-direction:column;gap:0px}\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.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.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { 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.KlesDynamicFieldDirective, selector: "[klesDynamicField]", inputs: ["field", "group", "siblingFields"] }] });
|
|
36
|
+
KlesFormArrayComponent = __decorate([
|
|
37
|
+
FieldMapper({ type: EnumType.array })
|
|
38
|
+
], KlesFormArrayComponent);
|
|
39
|
+
export { KlesFormArrayComponent };
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KlesFormArrayComponent, decorators: [{
|
|
41
|
+
type: Component,
|
|
42
|
+
args: [{ selector: 'kles-array', template: `
|
|
43
|
+
<div [formGroup]="group">
|
|
44
|
+
<ng-container [formArrayName]="field.name">
|
|
45
|
+
<div class="group-container" *ngFor="let subGroup of formArray.controls let index = index;"
|
|
46
|
+
[ngClass]="field.direction === 'column' ? 'column': 'row'">
|
|
47
|
+
<ng-container *ngFor="let subfield of field.collections;">
|
|
48
|
+
<ng-container *ngIf="subfield.visible !== false"
|
|
49
|
+
klesDynamicField [field]="subfield" [group]="subGroup" [siblingFields]="field.collections">
|
|
50
|
+
</ng-container>
|
|
51
|
+
</ng-container>
|
|
52
|
+
</div>
|
|
53
|
+
</ng-container>
|
|
54
|
+
</div>
|
|
55
|
+
`, styles: ["mat-form-field{width:100%}\n", ":host{display:flex;flex-direction:inherit}\n", ".group-container{display:flex;flex-direction:inherit}\n", ".row{gap:10px;flex-direction:row}\n", ".column{flex-direction:column;gap:0px}\n"] }]
|
|
56
|
+
}] });
|
|
57
|
+
//# source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mZpZWxkLm5hbWVdIGFzIEZvcm1Hcm91cDtcbiAgICAgICAgc3VwZXIubmdPbkluaXQoKTtcbiAgICAgICAgdGhpcy5mb3JtQXJyYXkgPSB0aGlzLmdyb3VwLmNvbnRyb2xzW3RoaXMuZmllbGQubmFtZV0gYXMgVW50eXBlZEZvcm1BcnJheTtcbiAgICB9XG5cbiAgICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICAgICAgc3VwZXIubmdPbkRlc3Ryb3koKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Component } from '@angular/core';
|
|
3
|
-
import { FieldMapper } from '../decorators/component.decorator';
|
|
4
|
-
import { EnumType } from '../enums/type.enum';
|
|
5
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/common";
|
|
8
|
-
import * as i2 from "@angular/flex-layout/extended";
|
|
9
|
-
import * as i3 from "@angular/material/badge";
|
|
10
|
-
import * as i4 from "@angular/material/tooltip";
|
|
11
|
-
let KlesFormBadgeComponent = class KlesFormBadgeComponent extends KlesFieldAbstract {
|
|
12
|
-
ngOnInit() {
|
|
13
|
-
super.ngOnInit();
|
|
14
|
-
}
|
|
15
|
-
ngOnDestroy() {
|
|
16
|
-
super.ngOnDestroy();
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
KlesFormBadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
20
|
-
KlesFormBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.
|
|
21
|
-
<span matTooltip="{{field.tooltip}}" [attr.id]="field.id" [ngClass]="field.ngClass"
|
|
22
|
-
matBadge="{{group.controls[field.name].value}}" matBadgeOverlap="false" matBadgeColor="{{field.color}}">
|
|
23
|
-
</span>
|
|
24
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.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: i3.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
25
|
-
KlesFormBadgeComponent = __decorate([
|
|
26
|
-
FieldMapper({ type: EnumType.badge })
|
|
27
|
-
], KlesFormBadgeComponent);
|
|
28
|
-
export { KlesFormBadgeComponent };
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{
|
|
32
|
-
selector: 'kles-form-badge',
|
|
33
|
-
template: `
|
|
34
|
-
<span matTooltip="{{field.tooltip}}" [attr.id]="field.id" [ngClass]="field.ngClass"
|
|
35
|
-
matBadge="{{group.controls[field.name].value}}" matBadgeOverlap="false" matBadgeColor="{{field.color}}">
|
|
36
|
-
</span>
|
|
37
|
-
`
|
|
38
|
-
}]
|
|
39
|
-
}] });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import { FieldMapper } from '../decorators/component.decorator';
|
|
4
|
+
import { EnumType } from '../enums/type.enum';
|
|
5
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/common";
|
|
8
|
+
import * as i2 from "@angular/flex-layout/extended";
|
|
9
|
+
import * as i3 from "@angular/material/badge";
|
|
10
|
+
import * as i4 from "@angular/material/tooltip";
|
|
11
|
+
let KlesFormBadgeComponent = class KlesFormBadgeComponent extends KlesFieldAbstract {
|
|
12
|
+
ngOnInit() {
|
|
13
|
+
super.ngOnInit();
|
|
14
|
+
}
|
|
15
|
+
ngOnDestroy() {
|
|
16
|
+
super.ngOnDestroy();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
KlesFormBadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KlesFormBadgeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
KlesFormBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: KlesFormBadgeComponent, selector: "kles-form-badge", usesInheritance: true, ngImport: i0, template: `
|
|
21
|
+
<span matTooltip="{{field.tooltip}}" [attr.id]="field.id" [ngClass]="field.ngClass"
|
|
22
|
+
matBadge="{{group.controls[field.name].value}}" matBadgeOverlap="false" matBadgeColor="{{field.color}}">
|
|
23
|
+
</span>
|
|
24
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.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: i3.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
25
|
+
KlesFormBadgeComponent = __decorate([
|
|
26
|
+
FieldMapper({ type: EnumType.badge })
|
|
27
|
+
], KlesFormBadgeComponent);
|
|
28
|
+
export { KlesFormBadgeComponent };
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KlesFormBadgeComponent, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: 'kles-form-badge',
|
|
33
|
+
template: `
|
|
34
|
+
<span matTooltip="{{field.tooltip}}" [attr.id]="field.id" [ngClass]="field.ngClass"
|
|
35
|
+
matBadge="{{group.controls[field.name].value}}" matBadgeOverlap="false" matBadgeColor="{{field.color}}">
|
|
36
|
+
</span>
|
|
37
|
+
`
|
|
38
|
+
}]
|
|
39
|
+
}] });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFkZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2xlcy1tYXRlcmlhbC1keW5hbWljZm9ybXMvc3JjL2xpYi9maWVsZHMvYmFkZ2UuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFxQixNQUFNLGVB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0eXBlOiBFbnVtVHlwZS5iYWRnZSB9KVxuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6ICdrbGVzLWZvcm0tYmFkZ2UnLFxuICAgIHRlbXBsYXRlOiBgXG4gICAgPHNwYW4gbWF0VG9vbHRpcD1cInt7ZmllbGQudG9vbHRpcH19XCIgW2F0dHIuaWRdPVwiZmllbGQuaWRcIiBbbmdDbGFzc109XCJmaWVsZC5uZ0NsYXNzXCIgXG4gICAgICAgIG1hdEJhZGdlPVwie3tncm91cC5jb250cm9sc1tmaWVsZC5uYW1lXS52YWx1ZX19XCIgbWF0QmFkZ2VPdmVybGFwPVwiZmFsc2VcIiBtYXRCYWRnZUNvbG9yPVwie3tmaWVsZC5jb2xvcn19XCI+XG4gICAgPC9zcGFuPlxuYFxufSlcbmV4cG9ydCBjbGFzcyBLbGVzRm9ybUJhZGdlQ29tcG9uZW50IGV4dGVuZHMgS2xlc0ZpZWxkQWJzdHJhY3QgaW1wbGVtZW50cyBPbkluaXQsIE9uRGVzdHJveSB7XG5cbiAgICBuZ09uSW5pdCgpIHtcbiAgICAgICAgc3VwZXIubmdPbkluaXQoKTtcbiAgICB9XG5cbiAgICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICAgICAgc3VwZXIubmdPbkRlc3Ryb3koKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,44 +1,44 @@
|
|
|
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/forms";
|
|
5
|
-
import * as i2 from "../forms/button-control.component";
|
|
6
|
-
export class KlesFormButtonComponent extends KlesFieldAbstract {
|
|
7
|
-
ngOnInit() {
|
|
8
|
-
super.ngOnInit();
|
|
9
|
-
}
|
|
10
|
-
ngOnDestroy() {
|
|
11
|
-
super.ngOnDestroy();
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
KlesFormButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
15
|
-
KlesFormButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.
|
|
16
|
-
<div [formGroup]="group">
|
|
17
|
-
<kles-button
|
|
18
|
-
[attr.id]="field.id" [classButton]="field.ngClass"
|
|
19
|
-
[name]="field.name" [label]="field.label" [color]="field.color"
|
|
20
|
-
[icon]="field.icon"
|
|
21
|
-
[iconSvg]="field.iconSvg"
|
|
22
|
-
[value]="field.value"
|
|
23
|
-
[formControlName]="field.name"
|
|
24
|
-
[tooltip]="field.tooltip">
|
|
25
|
-
</kles-button>
|
|
26
|
-
</div>
|
|
27
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.KlesButtonComponent, selector: "kles-button", inputs: ["name", "label", "color", "icon", "iconSvg", "disabled", "classButton", "value", "tooltip"] }] });
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
29
|
-
type: Component,
|
|
30
|
-
args: [{ selector: 'kles-form-button', template: `
|
|
31
|
-
<div [formGroup]="group">
|
|
32
|
-
<kles-button
|
|
33
|
-
[attr.id]="field.id" [classButton]="field.ngClass"
|
|
34
|
-
[name]="field.name" [label]="field.label" [color]="field.color"
|
|
35
|
-
[icon]="field.icon"
|
|
36
|
-
[iconSvg]="field.iconSvg"
|
|
37
|
-
[value]="field.value"
|
|
38
|
-
[formControlName]="field.name"
|
|
39
|
-
[tooltip]="field.tooltip">
|
|
40
|
-
</kles-button>
|
|
41
|
-
</div>
|
|
42
|
-
` }]
|
|
43
|
-
}] });
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
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/forms";
|
|
5
|
+
import * as i2 from "../forms/button-control.component";
|
|
6
|
+
export class KlesFormButtonComponent extends KlesFieldAbstract {
|
|
7
|
+
ngOnInit() {
|
|
8
|
+
super.ngOnInit();
|
|
9
|
+
}
|
|
10
|
+
ngOnDestroy() {
|
|
11
|
+
super.ngOnDestroy();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
KlesFormButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KlesFormButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
KlesFormButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: KlesFormButtonComponent, selector: "kles-form-button", usesInheritance: true, ngImport: i0, template: `
|
|
16
|
+
<div [formGroup]="group">
|
|
17
|
+
<kles-button
|
|
18
|
+
[attr.id]="field.id" [classButton]="field.ngClass"
|
|
19
|
+
[name]="field.name" [label]="field.label" [color]="field.color"
|
|
20
|
+
[icon]="field.icon"
|
|
21
|
+
[iconSvg]="field.iconSvg"
|
|
22
|
+
[value]="field.value"
|
|
23
|
+
[formControlName]="field.name"
|
|
24
|
+
[tooltip]="field.tooltip">
|
|
25
|
+
</kles-button>
|
|
26
|
+
</div>
|
|
27
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.KlesButtonComponent, selector: "kles-button", inputs: ["name", "label", "color", "icon", "iconSvg", "disabled", "classButton", "value", "tooltip"] }] });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KlesFormButtonComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{ selector: 'kles-form-button', template: `
|
|
31
|
+
<div [formGroup]="group">
|
|
32
|
+
<kles-button
|
|
33
|
+
[attr.id]="field.id" [classButton]="field.ngClass"
|
|
34
|
+
[name]="field.name" [label]="field.label" [color]="field.color"
|
|
35
|
+
[icon]="field.icon"
|
|
36
|
+
[iconSvg]="field.iconSvg"
|
|
37
|
+
[value]="field.value"
|
|
38
|
+
[formControlName]="field.name"
|
|
39
|
+
[tooltip]="field.tooltip">
|
|
40
|
+
</kles-button>
|
|
41
|
+
</div>
|
|
42
|
+
` }]
|
|
43
|
+
}] });
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWZvcm0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2xlcy1tYXRlcmlhbC1keW5hbWljZm9ybXMvc3JjL2xpYi9maWVsZHMvYnV0dG9uLWZvcm0uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBVSxTQUFTLEVBQWEsTUFBTSxlQUFlLENBQUM7QUFDN0QsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sa0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db250cm9sTmFtZV09XCJmaWVsZC5uYW1lXCJcbiAgICAgICAgICAgIFt0b29sdGlwXT1cImZpZWxkLnRvb2x0aXBcIj5cbiAgICAgICAgPC9rbGVzLWJ1dHRvbj5cbiAgICA8L2Rpdj5cbiAgICBgLFxuICAgIHN0eWxlczogW11cbn0pXG5leHBvcnQgY2xhc3MgS2xlc0Zvcm1CdXR0b25Db21wb25lbnQgZXh0ZW5kcyBLbGVzRmllbGRBYnN0cmFjdCBpbXBsZW1lbnRzIE9uSW5pdCwgT25EZXN0cm95IHtcblxuICAgIG5nT25Jbml0KCk6IHZvaWQge1xuICAgICAgICBzdXBlci5uZ09uSW5pdCgpO1xuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgICAgICBzdXBlci5uZ09uRGVzdHJveSgpO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
-
import { Component } from '@angular/core';
|
|
4
|
-
import { EnumType } from '../enums/type.enum';
|
|
5
|
-
import { FieldMapper } from '../decorators/component.decorator';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/common";
|
|
8
|
-
import * as i2 from "@angular/forms";
|
|
9
|
-
import * as i3 from "@angular/flex-layout/extended";
|
|
10
|
-
import * as i4 from "@angular/material/button";
|
|
11
|
-
import * as i5 from "@angular/material/tooltip";
|
|
12
|
-
let KlesFormSubmitButtonComponent = class KlesFormSubmitButtonComponent extends KlesFieldAbstract {
|
|
13
|
-
ngOnInit() {
|
|
14
|
-
super.ngOnInit();
|
|
15
|
-
}
|
|
16
|
-
ngOnDestroy() {
|
|
17
|
-
super.ngOnDestroy();
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
KlesFormSubmitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
21
|
-
KlesFormSubmitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.
|
|
22
|
-
<div [formGroup]="group">
|
|
23
|
-
<button matTooltip="{{field.tooltip}}" [attr.id]="field.id" [ngClass]="field.ngClass" type="submit" [disabled]="field.disabled" mat-raised-button color="primary">{{field.label}}</button>
|
|
24
|
-
</div>
|
|
25
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: 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: "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: "directive", type: i5.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
26
|
-
KlesFormSubmitButtonComponent = __decorate([
|
|
27
|
-
FieldMapper({ type: EnumType.button })
|
|
28
|
-
], KlesFormSubmitButtonComponent);
|
|
29
|
-
export { KlesFormSubmitButtonComponent };
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
31
|
-
type: Component,
|
|
32
|
-
args: [{ selector: 'kles-submit-button', template: `
|
|
33
|
-
<div [formGroup]="group">
|
|
34
|
-
<button matTooltip="{{field.tooltip}}" [attr.id]="field.id" [ngClass]="field.ngClass" type="submit" [disabled]="field.disabled" mat-raised-button color="primary">{{field.label}}</button>
|
|
35
|
-
</div>
|
|
36
|
-
` }]
|
|
37
|
-
}] });
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
+
import { Component } from '@angular/core';
|
|
4
|
+
import { EnumType } from '../enums/type.enum';
|
|
5
|
+
import { FieldMapper } from '../decorators/component.decorator';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/common";
|
|
8
|
+
import * as i2 from "@angular/forms";
|
|
9
|
+
import * as i3 from "@angular/flex-layout/extended";
|
|
10
|
+
import * as i4 from "@angular/material/button";
|
|
11
|
+
import * as i5 from "@angular/material/tooltip";
|
|
12
|
+
let KlesFormSubmitButtonComponent = class KlesFormSubmitButtonComponent extends KlesFieldAbstract {
|
|
13
|
+
ngOnInit() {
|
|
14
|
+
super.ngOnInit();
|
|
15
|
+
}
|
|
16
|
+
ngOnDestroy() {
|
|
17
|
+
super.ngOnDestroy();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
KlesFormSubmitButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KlesFormSubmitButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
KlesFormSubmitButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: KlesFormSubmitButtonComponent, selector: "kles-submit-button", usesInheritance: true, ngImport: i0, template: `
|
|
22
|
+
<div [formGroup]="group">
|
|
23
|
+
<button matTooltip="{{field.tooltip}}" [attr.id]="field.id" [ngClass]="field.ngClass" type="submit" [disabled]="field.disabled" mat-raised-button color="primary">{{field.label}}</button>
|
|
24
|
+
</div>
|
|
25
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: 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: "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: "directive", type: i5.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
26
|
+
KlesFormSubmitButtonComponent = __decorate([
|
|
27
|
+
FieldMapper({ type: EnumType.button })
|
|
28
|
+
], KlesFormSubmitButtonComponent);
|
|
29
|
+
export { KlesFormSubmitButtonComponent };
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KlesFormSubmitButtonComponent, decorators: [{
|
|
31
|
+
type: Component,
|
|
32
|
+
args: [{ selector: 'kles-submit-button', template: `
|
|
33
|
+
<div [formGroup]="group">
|
|
34
|
+
<button matTooltip="{{field.tooltip}}" [attr.id]="field.id" [ngClass]="field.ngClass" type="submit" [disabled]="field.disabled" mat-raised-button color="primary">{{field.label}}</button>
|
|
35
|
+
</div>
|
|
36
|
+
` }]
|
|
37
|
+
}] });
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLXN1Ym1pdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9rbGVzLW1hdGVyaWFsLWR5bmFtaWNmb3Jtcy9zcmMvbGliL2ZpZWxkcy9idXR0b24tc3VibWl0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDckQsT0FBTyxFQUFVLFNBQVMsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDOUMsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLG1DQUFtQyxDQUFDOzs7Ozs7O0lBWW5ELDZCQUE2QixTQUE3Qiw2QkFBOEIsU0FBUSxpQkFBaUI7SUFFaEUsUUFBUTtRQUNKLEtBQUssQ0FBQyxRQUFRLEVBQUUsQ0FBQztJQUNyQixDQUFDO0lBRUQsV0FBVztRQUNQLEtBQUssQ0FBQyxXQUFXLEVBQUUsQ0FBQztJQUN4QixDQUFDO0NBQ0osQ0FBQTswSEFUWSw2QkFBNkI7OEdBQTdCLDZCQUE2QixpRkFQNUI7Ozs7S0FJVDtBQUdRLDZCQUE2QjtJ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JtU3VibWl0QnV0dG9uQ29tcG9uZW50IGV4dGVuZHMgS2xlc0ZpZWxkQWJzdHJhY3QgaW1wbGVtZW50cyBPbkluaXQsIE9uRGVzdHJveSB7XG5cbiAgICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICAgICAgc3VwZXIubmdPbkluaXQoKTtcbiAgICB9XG5cbiAgICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICAgICAgc3VwZXIubmdPbkRlc3Ryb3koKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { Observable, of } from 'rxjs';
|
|
3
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "@angular/forms";
|
|
7
|
-
import * as i3 from "@angular/flex-layout/extended";
|
|
8
|
-
import * as i4 from "@angular/material/button-toggle";
|
|
9
|
-
import * as i5 from "../pipe/transform.pipe";
|
|
10
|
-
export class KlesFormButtonToogleGroupComponent extends KlesFieldAbstract {
|
|
11
|
-
ngOnInit() {
|
|
12
|
-
super.ngOnInit();
|
|
13
|
-
if (!(this.field.options instanceof Observable)) {
|
|
14
|
-
this.options$ = of(this.field.options);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
this.options$ = this.field.options;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
ngOnDestroy() {
|
|
21
|
-
super.ngOnDestroy();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
KlesFormButtonToogleGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.
|
|
25
|
-
KlesFormButtonToogleGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.
|
|
26
|
-
<div [formGroup]="group" class="form-element">
|
|
27
|
-
<mat-button-toggle-group [formControlName]="field.name" [multiple]="field.multiple"
|
|
28
|
-
[attr.id]="field.id" [ngClass]="field.ngClass">
|
|
29
|
-
<mat-button-toggle *ngFor="let item of options$ | async" [value]="item">
|
|
30
|
-
{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}
|
|
31
|
-
</mat-button-toggle>
|
|
32
|
-
</mat-button-toggle-group>
|
|
33
|
-
</div>
|
|
34
|
-
`, 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: 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.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.KlesTransformPipe, name: "klesTransform" }] });
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.
|
|
36
|
-
type: Component,
|
|
37
|
-
args: [{
|
|
38
|
-
selector: 'kles-form-button-toogle-group',
|
|
39
|
-
template: `
|
|
40
|
-
<div [formGroup]="group" class="form-element">
|
|
41
|
-
<mat-button-toggle-group [formControlName]="field.name" [multiple]="field.multiple"
|
|
42
|
-
[attr.id]="field.id" [ngClass]="field.ngClass">
|
|
43
|
-
<mat-button-toggle *ngFor="let item of options$ | async" [value]="item">
|
|
44
|
-
{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}
|
|
45
|
-
</mat-button-toggle>
|
|
46
|
-
</mat-button-toggle-group>
|
|
47
|
-
</div>
|
|
48
|
-
`
|
|
49
|
-
}]
|
|
50
|
-
}] });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { Observable, of } from 'rxjs';
|
|
3
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@angular/forms";
|
|
7
|
+
import * as i3 from "@angular/flex-layout/extended";
|
|
8
|
+
import * as i4 from "@angular/material/button-toggle";
|
|
9
|
+
import * as i5 from "../pipe/transform.pipe";
|
|
10
|
+
export class KlesFormButtonToogleGroupComponent extends KlesFieldAbstract {
|
|
11
|
+
ngOnInit() {
|
|
12
|
+
super.ngOnInit();
|
|
13
|
+
if (!(this.field.options instanceof Observable)) {
|
|
14
|
+
this.options$ = of(this.field.options);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.options$ = this.field.options;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
ngOnDestroy() {
|
|
21
|
+
super.ngOnDestroy();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
KlesFormButtonToogleGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KlesFormButtonToogleGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
KlesFormButtonToogleGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: KlesFormButtonToogleGroupComponent, selector: "kles-form-button-toogle-group", usesInheritance: true, ngImport: i0, template: `
|
|
26
|
+
<div [formGroup]="group" class="form-element">
|
|
27
|
+
<mat-button-toggle-group [formControlName]="field.name" [multiple]="field.multiple"
|
|
28
|
+
[attr.id]="field.id" [ngClass]="field.ngClass">
|
|
29
|
+
<mat-button-toggle *ngFor="let item of options$ | async" [value]="item">
|
|
30
|
+
{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}
|
|
31
|
+
</mat-button-toggle>
|
|
32
|
+
</mat-button-toggle-group>
|
|
33
|
+
</div>
|
|
34
|
+
`, 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: 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.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i4.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "appearance", "checked", "disabled"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.KlesTransformPipe, name: "klesTransform" }] });
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: KlesFormButtonToogleGroupComponent, decorators: [{
|
|
36
|
+
type: Component,
|
|
37
|
+
args: [{
|
|
38
|
+
selector: 'kles-form-button-toogle-group',
|
|
39
|
+
template: `
|
|
40
|
+
<div [formGroup]="group" class="form-element">
|
|
41
|
+
<mat-button-toggle-group [formControlName]="field.name" [multiple]="field.multiple"
|
|
42
|
+
[attr.id]="field.id" [ngClass]="field.ngClass">
|
|
43
|
+
<mat-button-toggle *ngFor="let item of options$ | async" [value]="item">
|
|
44
|
+
{{(field.property ? item[field.property] : item) | klesTransform:field.pipeTransform}}
|
|
45
|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