@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.
Files changed (102) hide show
  1. package/README.md +24 -24
  2. package/esm2020/3kles-kles-material-dynamicforms.mjs +4 -4
  3. package/esm2020/lib/decorators/component.decorator.mjs +7 -7
  4. package/esm2020/lib/directive/dynamic-component.directive.mjs +44 -44
  5. package/esm2020/lib/directive/dynamic-field.directive.mjs +50 -50
  6. package/esm2020/lib/dynamic-form.component.mjs +251 -247
  7. package/esm2020/lib/enums/type.enum.mjs +19 -19
  8. package/esm2020/lib/fields/array.component.mjs +57 -53
  9. package/esm2020/lib/fields/badge.component.mjs +40 -40
  10. package/esm2020/lib/fields/button-form.component.mjs +44 -44
  11. package/esm2020/lib/fields/button-submit.component.mjs +38 -38
  12. package/esm2020/lib/fields/button-toogle-group.component.mjs +51 -51
  13. package/esm2020/lib/fields/buttonchecker-form.component.mjs +44 -44
  14. package/esm2020/lib/fields/buttonfile-form.component.mjs +42 -42
  15. package/esm2020/lib/fields/checkbox.component.mjs +50 -50
  16. package/esm2020/lib/fields/chip.component.mjs +41 -41
  17. package/esm2020/lib/fields/color.component.mjs +84 -84
  18. package/esm2020/lib/fields/date.component.mjs +52 -52
  19. package/esm2020/lib/fields/field.abstract.mjs +66 -57
  20. package/esm2020/lib/fields/group.component.mjs +48 -46
  21. package/esm2020/lib/fields/icon.component.mjs +28 -28
  22. package/esm2020/lib/fields/input.clearable.component.mjs +112 -112
  23. package/esm2020/lib/fields/input.component.mjs +158 -158
  24. package/esm2020/lib/fields/label.component.mjs +40 -40
  25. package/esm2020/lib/fields/line-break.component.mjs +23 -23
  26. package/esm2020/lib/fields/link.component.mjs +32 -32
  27. package/esm2020/lib/fields/list-field.component.mjs +114 -113
  28. package/esm2020/lib/fields/radio.component.mjs +49 -49
  29. package/esm2020/lib/fields/select.component.mjs +211 -210
  30. package/esm2020/lib/fields/select.search.component.mjs +307 -307
  31. package/esm2020/lib/fields/selection-list.component.mjs +63 -63
  32. package/esm2020/lib/fields/slide-toggle.component.mjs +43 -43
  33. package/esm2020/lib/fields/text.component.mjs +40 -40
  34. package/esm2020/lib/fields/textarea.component.mjs +56 -56
  35. package/esm2020/lib/forms/button-control.component.mjs +115 -115
  36. package/esm2020/lib/forms/buttonchecker-control.component.mjs +85 -85
  37. package/esm2020/lib/forms/buttonfile-control.component.mjs +118 -118
  38. package/esm2020/lib/interfaces/component.interface.mjs +2 -2
  39. package/esm2020/lib/interfaces/directive.interface.mjs +2 -0
  40. package/esm2020/lib/interfaces/field.config.interface.mjs +2 -2
  41. package/esm2020/lib/interfaces/field.interface.mjs +2 -2
  42. package/esm2020/lib/interfaces/validator.interface.mjs +2 -2
  43. package/esm2020/lib/kles-material-dynamicforms.module.mjs +191 -191
  44. package/esm2020/lib/matcher/form-error.matcher.mjs +16 -16
  45. package/esm2020/lib/modules/material.module.mjs +278 -278
  46. package/esm2020/lib/pipe/array.pipe.mjs +22 -22
  47. package/esm2020/lib/pipe/transform.pipe.mjs +27 -27
  48. package/esm2020/lib/validators/autocomplete.validator.mjs +23 -23
  49. package/esm2020/public-api.mjs +59 -58
  50. package/fesm2015/3kles-kles-material-dynamicforms.mjs +2695 -2673
  51. package/fesm2015/3kles-kles-material-dynamicforms.mjs.map +1 -1
  52. package/fesm2020/3kles-kles-material-dynamicforms.mjs +2691 -2670
  53. package/fesm2020/3kles-kles-material-dynamicforms.mjs.map +1 -1
  54. package/index.d.ts +5 -5
  55. package/lib/decorators/component.decorator.d.ts +8 -8
  56. package/lib/directive/dynamic-component.directive.d.ts +16 -16
  57. package/lib/directive/dynamic-field.directive.d.ts +18 -18
  58. package/lib/dynamic-form.component.d.ts +31 -31
  59. package/lib/enums/type.enum.d.ts +17 -17
  60. package/lib/fields/array.component.d.ts +11 -11
  61. package/lib/fields/badge.component.d.ts +9 -9
  62. package/lib/fields/button-form.component.d.ts +9 -9
  63. package/lib/fields/button-submit.component.d.ts +9 -9
  64. package/lib/fields/button-toogle-group.component.d.ts +11 -11
  65. package/lib/fields/buttonchecker-form.component.d.ts +9 -9
  66. package/lib/fields/buttonfile-form.component.d.ts +9 -9
  67. package/lib/fields/checkbox.component.d.ts +9 -9
  68. package/lib/fields/chip.component.d.ts +9 -9
  69. package/lib/fields/color.component.d.ts +10 -10
  70. package/lib/fields/date.component.d.ts +9 -9
  71. package/lib/fields/field.abstract.d.ts +21 -18
  72. package/lib/fields/group.component.d.ts +11 -11
  73. package/lib/fields/icon.component.d.ts +9 -9
  74. package/lib/fields/input.clearable.component.d.ts +8 -8
  75. package/lib/fields/input.component.d.ts +15 -15
  76. package/lib/fields/label.component.d.ts +9 -9
  77. package/lib/fields/line-break.component.d.ts +9 -9
  78. package/lib/fields/link.component.d.ts +9 -9
  79. package/lib/fields/list-field.component.d.ts +19 -18
  80. package/lib/fields/radio.component.d.ts +9 -9
  81. package/lib/fields/select.component.d.ts +19 -18
  82. package/lib/fields/select.search.component.d.ts +22 -22
  83. package/lib/fields/selection-list.component.d.ts +11 -11
  84. package/lib/fields/slide-toggle.component.d.ts +9 -9
  85. package/lib/fields/text.component.d.ts +9 -9
  86. package/lib/fields/textarea.component.d.ts +9 -9
  87. package/lib/forms/button-control.component.d.ts +36 -36
  88. package/lib/forms/buttonchecker-control.component.d.ts +14 -14
  89. package/lib/forms/buttonfile-control.component.d.ts +20 -20
  90. package/lib/interfaces/component.interface.d.ts +5 -5
  91. package/lib/interfaces/directive.interface.d.ts +3 -0
  92. package/lib/interfaces/field.config.interface.d.ts +58 -54
  93. package/lib/interfaces/field.interface.d.ts +7 -7
  94. package/lib/interfaces/validator.interface.d.ts +5 -5
  95. package/lib/kles-material-dynamicforms.module.d.ts +47 -47
  96. package/lib/matcher/form-error.matcher.d.ts +9 -9
  97. package/lib/modules/material.module.d.ts +42 -42
  98. package/lib/pipe/array.pipe.d.ts +7 -7
  99. package/lib/pipe/transform.pipe.d.ts +10 -10
  100. package/lib/validators/autocomplete.validator.d.ts +3 -3
  101. package/package.json +1 -1
  102. 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
- formArray: UntypedFormArray;
8
- constructor(fb: UntypedFormBuilder);
9
- ngOnInit(): void;
10
- private createFormGroup;
11
- deleteField(index: number): void;
12
- addField(): void;
13
- private bindValidations;
14
- private bindAsyncValidations;
15
- ngOnDestroy(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormListFieldComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormListFieldComponent, "kles-form-listfield", never, {}, {}, never, never, false>;
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
- cdkVirtualScrollViewport: CdkVirtualScrollViewport;
9
- options: QueryList<MatOption>;
10
- options$: Observable<any[]>;
11
- constructor();
12
- ngOnInit(): void;
13
- ngOnDestroy(): void;
14
- openChange($event: boolean): void;
15
- compareFn: (o1: any, o2: any) => boolean;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSelectComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSelectComponent, "kles-form-select", never, {}, {}, never, never, false>;
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
+ }
@@ -0,0 +1,3 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ export interface IKlesDirective extends OnInit, OnDestroy {
3
+ }
@@ -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
- export interface IKlesFieldConfig {
7
- type?: EnumType;
8
- name: string;
9
- component?: Type<any>;
10
- id?: string;
11
- label?: string;
12
- placeholder?: string;
13
- tooltip?: string;
14
- inputType?: string;
15
- min?: number;
16
- max?: number;
17
- maxLength?: number;
18
- step?: number;
19
- options?: any[] | Subject<any[]>;
20
- ngClass?: any;
21
- ngStyle?: any;
22
- property?: string;
23
- collections?: any;
24
- value?: any;
25
- multiple?: boolean;
26
- disabled?: boolean;
27
- autocomplete?: boolean;
28
- autocompleteComponent?: Type<any>;
29
- displayWith?: ((value: any) => string) | null;
30
- panelWidth?: string | number;
31
- indeterminate?: boolean;
32
- color?: string;
33
- icon?: string;
34
- iconSvg?: string;
35
- textareaAutoSize?: {
36
- minRows?: number;
37
- maxRows?: number;
38
- };
39
- validations?: IKlesValidator<ValidatorFn>[];
40
- asyncValidations?: IKlesValidator<AsyncValidatorFn>[];
41
- pipeTransform?: {
42
- pipe: PipeTransform;
43
- options?: any[];
44
- }[];
45
- direction?: 'row' | 'column';
46
- valueChanges?: ((field: IKlesFieldConfig, group: UntypedFormGroup, siblingField?: IKlesFieldConfig[], valueChanged?: any) => void);
47
- triggerComponent?: Type<any>;
48
- virtualScroll?: boolean;
49
- itemSize?: number;
50
- pending?: boolean;
51
- searchKeys?: string[];
52
- updateOn?: 'change' | 'blur' | 'submit';
53
- debounceTime?: number;
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
+ }