@3kles/kles-material-dynamicforms 14.0.1 → 14.0.3
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 +251 -247
- package/esm2020/lib/enums/type.enum.mjs +19 -19
- package/esm2020/lib/fields/array.component.mjs +57 -53
- 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 -57
- package/esm2020/lib/fields/group.component.mjs +48 -46
- 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 -113
- package/esm2020/lib/fields/radio.component.mjs +49 -49
- package/esm2020/lib/fields/select.component.mjs +211 -210
- package/esm2020/lib/fields/select.search.component.mjs +307 -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 -0
- 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 +191 -191
- 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 -58
- package/fesm2015/3kles-kles-material-dynamicforms.mjs +2695 -2673
- package/fesm2015/3kles-kles-material-dynamicforms.mjs.map +1 -1
- package/fesm2020/3kles-kles-material-dynamicforms.mjs +2691 -2670
- 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 +31 -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 -18
- 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 -18
- package/lib/fields/radio.component.d.ts +9 -9
- package/lib/fields/select.component.d.ts +19 -18
- package/lib/fields/select.search.component.d.ts +22 -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 -0
- package/lib/interfaces/field.config.interface.d.ts +58 -54
- 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 +47 -47
- 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 -1
- package/public-api.d.ts +54 -53
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
-
import { KlesFieldAbstract } from "./field.abstract";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class KlesFormLinkComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
-
ngOnInit(): void;
|
|
6
|
-
ngOnDestroy(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormLinkComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormLinkComponent, "kles-form-link", never, {}, {}, never, never, false>;
|
|
9
|
-
}
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { KlesFieldAbstract } from "./field.abstract";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KlesFormLinkComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
ngOnDestroy(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormLinkComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormLinkComponent, "kles-form-link", never, {}, {}, never, never, false>;
|
|
9
|
+
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
-
import { UntypedFormArray, UntypedFormBuilder } from '@angular/forms';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class KlesFormListFieldComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
6
|
-
private fb;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
private
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
static
|
|
18
|
-
}
|
|
1
|
+
import { OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
+
import { UntypedFormArray, UntypedFormBuilder } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KlesFormListFieldComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
6
|
+
private fb;
|
|
7
|
+
protected viewRef: ViewContainerRef;
|
|
8
|
+
formArray: UntypedFormArray;
|
|
9
|
+
constructor(fb: UntypedFormBuilder, viewRef: ViewContainerRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
private createFormGroup;
|
|
12
|
+
deleteField(index: number): void;
|
|
13
|
+
addField(): void;
|
|
14
|
+
private bindValidations;
|
|
15
|
+
private bindAsyncValidations;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormListFieldComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormListFieldComponent, "kles-form-listfield", never, {}, {}, never, never, false>;
|
|
19
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class KlesFormRadioComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
-
ngOnInit(): void;
|
|
6
|
-
ngOnDestroy(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormRadioComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormRadioComponent, "kles-form-radiobutton", never, {}, {}, never, never, false>;
|
|
9
|
-
}
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KlesFormRadioComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
ngOnDestroy(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormRadioComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormRadioComponent, "kles-form-radiobutton", never, {}, {}, never, never, false>;
|
|
9
|
+
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
|
-
import { OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
3
|
-
import { MatOption } from '@angular/material/core';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class KlesFormSelectComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
options
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
static
|
|
18
|
-
}
|
|
1
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
|
+
import { OnDestroy, OnInit, QueryList, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { MatOption } from '@angular/material/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class KlesFormSelectComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
8
|
+
protected viewRef: ViewContainerRef;
|
|
9
|
+
cdkVirtualScrollViewport: CdkVirtualScrollViewport;
|
|
10
|
+
options: QueryList<MatOption>;
|
|
11
|
+
options$: Observable<any[]>;
|
|
12
|
+
constructor(viewRef: ViewContainerRef);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngOnDestroy(): void;
|
|
15
|
+
openChange($event: boolean): void;
|
|
16
|
+
compareFn: (o1: any, o2: any) => boolean;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSelectComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSelectComponent, "kles-form-select", never, {}, {}, never, never, false>;
|
|
19
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
|
-
import { OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
3
|
-
import { UntypedFormControl } from '@angular/forms';
|
|
4
|
-
import { MatOption } from '@angular/material/core';
|
|
5
|
-
import { Observable, ReplaySubject } from 'rxjs';
|
|
6
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class KlesFormSelectSearchComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
9
|
-
searchControl: UntypedFormControl;
|
|
10
|
-
selectAllControl: UntypedFormControl;
|
|
11
|
-
options$: Observable<any[]>;
|
|
12
|
-
optionsFiltered$: ReplaySubject<any[]>;
|
|
13
|
-
cdkVirtualScrollViewport: CdkVirtualScrollViewport;
|
|
14
|
-
options: QueryList<MatOption>;
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
toggleAllSelection(state: any): void;
|
|
18
|
-
openChange($event: boolean): void;
|
|
19
|
-
compareFn: (o1: any, o2: any) => boolean;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSelectSearchComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSelectSearchComponent, "kles-form-select-search", never, {}, {}, never, never, false>;
|
|
22
|
-
}
|
|
1
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
|
+
import { OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
3
|
+
import { UntypedFormControl } from '@angular/forms';
|
|
4
|
+
import { MatOption } from '@angular/material/core';
|
|
5
|
+
import { Observable, ReplaySubject } from 'rxjs';
|
|
6
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class KlesFormSelectSearchComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
9
|
+
searchControl: UntypedFormControl;
|
|
10
|
+
selectAllControl: UntypedFormControl;
|
|
11
|
+
options$: Observable<any[]>;
|
|
12
|
+
optionsFiltered$: ReplaySubject<any[]>;
|
|
13
|
+
cdkVirtualScrollViewport: CdkVirtualScrollViewport;
|
|
14
|
+
options: QueryList<MatOption>;
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
toggleAllSelection(state: any): void;
|
|
18
|
+
openChange($event: boolean): void;
|
|
19
|
+
compareFn: (o1: any, o2: any) => boolean;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSelectSearchComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSelectSearchComponent, "kles-form-select-search", never, {}, {}, never, never, false>;
|
|
22
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class KlesFormSelectionListComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
6
|
-
options$: Observable<any[]>;
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
ngOnDestroy(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSelectionListComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSelectionListComponent, "kles-form-selection-list", never, {}, {}, never, never, false>;
|
|
11
|
-
}
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class KlesFormSelectionListComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
6
|
+
options$: Observable<any[]>;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
ngOnDestroy(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSelectionListComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSelectionListComponent, "kles-form-selection-list", never, {}, {}, never, never, false>;
|
|
11
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class KlesFormSlideToggleComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
-
ngOnInit(): void;
|
|
6
|
-
ngOnDestroy(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSlideToggleComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSlideToggleComponent, "kles-form-slide-toggle", never, {}, {}, never, never, false>;
|
|
9
|
-
}
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KlesFormSlideToggleComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
ngOnDestroy(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSlideToggleComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSlideToggleComponent, "kles-form-slide-toggle", never, {}, {}, never, never, false>;
|
|
9
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class KlesFormTextComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
-
ngOnInit(): void;
|
|
6
|
-
ngOnDestroy(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormTextComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormTextComponent, "kles-form-text", never, {}, {}, never, never, false>;
|
|
9
|
-
}
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KlesFormTextComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
ngOnDestroy(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormTextComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormTextComponent, "kles-form-text", never, {}, {}, never, never, false>;
|
|
9
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class KlesFormTextareaComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
-
ngOnInit(): void;
|
|
6
|
-
ngOnDestroy(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormTextareaComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormTextareaComponent, "kles-form-textarea", never, {}, {}, never, never, false>;
|
|
9
|
-
}
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KlesFormTextareaComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
ngOnDestroy(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormTextareaComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormTextareaComponent, "kles-form-textarea", never, {}, {}, never, never, false>;
|
|
9
|
+
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface IButton {
|
|
5
|
-
event?: any;
|
|
6
|
-
uiButton?: IUIButton;
|
|
7
|
-
}
|
|
8
|
-
export interface IUIButton {
|
|
9
|
-
label?: string;
|
|
10
|
-
color?: string;
|
|
11
|
-
icon?: string;
|
|
12
|
-
iconSvg?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
class?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class KlesButtonComponent implements OnInit, ControlValueAccessor {
|
|
17
|
-
name: string;
|
|
18
|
-
label: string;
|
|
19
|
-
color: string;
|
|
20
|
-
icon: string;
|
|
21
|
-
iconSvg: string;
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
classButton: string;
|
|
24
|
-
value: IButton;
|
|
25
|
-
tooltip?: string;
|
|
26
|
-
onChange: any;
|
|
27
|
-
onTouched: any;
|
|
28
|
-
ngOnInit(): void;
|
|
29
|
-
click(event: any): void;
|
|
30
|
-
writeValue(value: IButton): void;
|
|
31
|
-
registerOnChange(fn: any): void;
|
|
32
|
-
registerOnTouched(fn: any): void;
|
|
33
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesButtonComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesButtonComponent, "kles-button", never, { "name": "name"; "label": "label"; "color": "color"; "icon": "icon"; "iconSvg": "iconSvg"; "disabled": "disabled"; "classButton": "classButton"; "value": "value"; "tooltip": "tooltip"; }, {}, never, never, false>;
|
|
36
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IButton {
|
|
5
|
+
event?: any;
|
|
6
|
+
uiButton?: IUIButton;
|
|
7
|
+
}
|
|
8
|
+
export interface IUIButton {
|
|
9
|
+
label?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
iconSvg?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
class?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class KlesButtonComponent implements OnInit, ControlValueAccessor {
|
|
17
|
+
name: string;
|
|
18
|
+
label: string;
|
|
19
|
+
color: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
iconSvg: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
classButton: string;
|
|
24
|
+
value: IButton;
|
|
25
|
+
tooltip?: string;
|
|
26
|
+
onChange: any;
|
|
27
|
+
onTouched: any;
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
click(event: any): void;
|
|
30
|
+
writeValue(value: IButton): void;
|
|
31
|
+
registerOnChange(fn: any): void;
|
|
32
|
+
registerOnTouched(fn: any): void;
|
|
33
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesButtonComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesButtonComponent, "kles-button", never, { "name": "name"; "label": "label"; "color": "color"; "icon": "icon"; "iconSvg": "iconSvg"; "disabled": "disabled"; "classButton": "classButton"; "value": "value"; "tooltip": "tooltip"; }, {}, never, never, false>;
|
|
36
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
-
import { IButton, KlesButtonComponent } from './button-control.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface IButtonChecker extends IButton {
|
|
5
|
-
busy: boolean;
|
|
6
|
-
error?: any[];
|
|
7
|
-
message?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class KlesButtonCheckerComponent extends KlesButtonComponent implements ControlValueAccessor {
|
|
10
|
-
value: IButtonChecker;
|
|
11
|
-
countError(): number;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesButtonCheckerComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesButtonCheckerComponent, "kles-button-checker", never, {}, {}, never, never, false>;
|
|
14
|
-
}
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { IButton, KlesButtonComponent } from './button-control.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IButtonChecker extends IButton {
|
|
5
|
+
busy: boolean;
|
|
6
|
+
error?: any[];
|
|
7
|
+
message?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class KlesButtonCheckerComponent extends KlesButtonComponent implements ControlValueAccessor {
|
|
10
|
+
value: IButtonChecker;
|
|
11
|
+
countError(): number;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesButtonCheckerComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesButtonCheckerComponent, "kles-button-checker", never, {}, {}, never, never, false>;
|
|
14
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
-
import { IButton, KlesButtonComponent } from './button-control.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export interface IButtonFile extends IButton {
|
|
5
|
-
fileContent?: string | string[];
|
|
6
|
-
}
|
|
7
|
-
export declare class KlesButtonFileComponent extends KlesButtonComponent implements ControlValueAccessor {
|
|
8
|
-
file: any;
|
|
9
|
-
accept: string;
|
|
10
|
-
fileReader: FileReader;
|
|
11
|
-
fileContent: string | string[];
|
|
12
|
-
value: IButtonFile;
|
|
13
|
-
click(event: any): void;
|
|
14
|
-
writeValue(value: IButton): void;
|
|
15
|
-
onFileLoad(fileLoadedEvent: any): void;
|
|
16
|
-
onFileSelect(input: HTMLInputElement): Promise<void>;
|
|
17
|
-
readUploadedFile(inputFile: any): Promise<any>;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesButtonFileComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesButtonFileComponent, "kles-button-file", never, {}, {}, never, never, false>;
|
|
20
|
-
}
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { IButton, KlesButtonComponent } from './button-control.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IButtonFile extends IButton {
|
|
5
|
+
fileContent?: string | string[];
|
|
6
|
+
}
|
|
7
|
+
export declare class KlesButtonFileComponent extends KlesButtonComponent implements ControlValueAccessor {
|
|
8
|
+
file: any;
|
|
9
|
+
accept: string;
|
|
10
|
+
fileReader: FileReader;
|
|
11
|
+
fileContent: string | string[];
|
|
12
|
+
value: IButtonFile;
|
|
13
|
+
click(event: any): void;
|
|
14
|
+
writeValue(value: IButton): void;
|
|
15
|
+
onFileLoad(fileLoadedEvent: any): void;
|
|
16
|
+
onFileSelect(input: HTMLInputElement): Promise<void>;
|
|
17
|
+
readUploadedFile(inputFile: any): Promise<any>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesButtonFileComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesButtonFileComponent, "kles-button-file", never, {}, {}, never, never, false>;
|
|
20
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Type } from "@angular/core";
|
|
2
|
-
export interface IKlesComponent {
|
|
3
|
-
component: Type<any>;
|
|
4
|
-
value: any;
|
|
5
|
-
}
|
|
1
|
+
import { Type } from "@angular/core";
|
|
2
|
+
export interface IKlesComponent {
|
|
3
|
+
component: Type<any>;
|
|
4
|
+
value: any;
|
|
5
|
+
}
|
|
@@ -1,54 +1,58 @@
|
|
|
1
|
-
import { IKlesValidator } from './validator.interface';
|
|
2
|
-
import { ValidatorFn, AsyncValidatorFn, UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
import { PipeTransform, Type } from '@angular/core';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
|
-
import { EnumType } from '../enums/type.enum';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
import { IKlesValidator } from './validator.interface';
|
|
2
|
+
import { ValidatorFn, AsyncValidatorFn, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { PipeTransform, Type, ViewContainerRef } from '@angular/core';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { EnumType } from '../enums/type.enum';
|
|
6
|
+
import { IKlesField } from './field.interface';
|
|
7
|
+
import { IKlesDirective } from './directive.interface';
|
|
8
|
+
export interface IKlesFieldConfig {
|
|
9
|
+
type?: EnumType;
|
|
10
|
+
name: string;
|
|
11
|
+
component?: Type<any>;
|
|
12
|
+
id?: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
tooltip?: string;
|
|
16
|
+
inputType?: string;
|
|
17
|
+
min?: number;
|
|
18
|
+
max?: number;
|
|
19
|
+
maxLength?: number;
|
|
20
|
+
step?: number;
|
|
21
|
+
options?: any[] | Subject<any[]>;
|
|
22
|
+
ngClass?: any;
|
|
23
|
+
ngStyle?: any;
|
|
24
|
+
property?: string;
|
|
25
|
+
collections?: any;
|
|
26
|
+
value?: any;
|
|
27
|
+
multiple?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
autocomplete?: boolean;
|
|
30
|
+
autocompleteComponent?: Type<any>;
|
|
31
|
+
displayWith?: ((value: any) => string) | null;
|
|
32
|
+
panelWidth?: string | number;
|
|
33
|
+
indeterminate?: boolean;
|
|
34
|
+
color?: string;
|
|
35
|
+
icon?: string;
|
|
36
|
+
iconSvg?: string;
|
|
37
|
+
textareaAutoSize?: {
|
|
38
|
+
minRows?: number;
|
|
39
|
+
maxRows?: number;
|
|
40
|
+
};
|
|
41
|
+
validations?: IKlesValidator<ValidatorFn>[];
|
|
42
|
+
asyncValidations?: IKlesValidator<AsyncValidatorFn>[];
|
|
43
|
+
pipeTransform?: {
|
|
44
|
+
pipe: PipeTransform;
|
|
45
|
+
options?: any[];
|
|
46
|
+
}[];
|
|
47
|
+
direction?: 'row' | 'column';
|
|
48
|
+
valueChanges?: ((field: IKlesFieldConfig, group: UntypedFormGroup, siblingField?: IKlesFieldConfig[], valueChanged?: any) => void);
|
|
49
|
+
triggerComponent?: Type<any>;
|
|
50
|
+
virtualScroll?: boolean;
|
|
51
|
+
itemSize?: number;
|
|
52
|
+
pending?: boolean;
|
|
53
|
+
searchKeys?: string[];
|
|
54
|
+
updateOn?: 'change' | 'blur' | 'submit';
|
|
55
|
+
debounceTime?: number;
|
|
56
|
+
directive?: (new (ref: ViewContainerRef, field: IKlesField) => IKlesDirective);
|
|
57
|
+
visible?: boolean;
|
|
58
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IKlesFieldConfig } from './field.config.interface';
|
|
2
|
-
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
-
export interface IKlesField {
|
|
4
|
-
field: IKlesFieldConfig;
|
|
5
|
-
group: UntypedFormGroup;
|
|
6
|
-
siblingFields: IKlesFieldConfig[];
|
|
7
|
-
}
|
|
1
|
+
import { IKlesFieldConfig } from './field.config.interface';
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
export interface IKlesField {
|
|
4
|
+
field: IKlesFieldConfig;
|
|
5
|
+
group: UntypedFormGroup;
|
|
6
|
+
siblingFields: IKlesFieldConfig[];
|
|
7
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface IKlesValidator<T> {
|
|
2
|
-
name: string;
|
|
3
|
-
validator: T;
|
|
4
|
-
message: string;
|
|
5
|
-
}
|
|
1
|
+
export interface IKlesValidator<T> {
|
|
2
|
+
name: string;
|
|
3
|
+
validator: T;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|