@3kles/kles-material-dynamicforms 19.5.1 → 21.0.0

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 (94) hide show
  1. package/fesm2022/3kles-kles-material-dynamicforms.mjs +285 -277
  2. package/fesm2022/3kles-kles-material-dynamicforms.mjs.map +1 -1
  3. package/package.json +17 -16
  4. package/types/3kles-kles-material-dynamicforms.d.ts +1083 -0
  5. package/index.d.ts +0 -5
  6. package/lib/controls/array.control.d.ts +0 -5
  7. package/lib/controls/control.abstract.d.ts +0 -13
  8. package/lib/controls/control.interface.d.ts +0 -7
  9. package/lib/controls/default.control.d.ts +0 -5
  10. package/lib/controls/group.control.d.ts +0 -5
  11. package/lib/controls/range.control.d.ts +0 -5
  12. package/lib/decorators/component.decorator.d.ts +0 -15
  13. package/lib/directive/dynamic-component.directive.d.ts +0 -16
  14. package/lib/directive/dynamic-field.directive.d.ts +0 -25
  15. package/lib/directive/mat-error-form.directive.d.ts +0 -12
  16. package/lib/directive/mat-error-message.directive.d.ts +0 -17
  17. package/lib/dynamic-form-intl.d.ts +0 -7
  18. package/lib/dynamic-form.component.d.ts +0 -37
  19. package/lib/enums/button-attribute.enum.d.ts +0 -6
  20. package/lib/enums/type.enum.d.ts +0 -19
  21. package/lib/factories/field.factory.d.ts +0 -6
  22. package/lib/fields/array.component.d.ts +0 -14
  23. package/lib/fields/badge.component.d.ts +0 -9
  24. package/lib/fields/button-fab.component.d.ts +0 -9
  25. package/lib/fields/button-form.component.d.ts +0 -9
  26. package/lib/fields/button-icon.component.d.ts +0 -9
  27. package/lib/fields/button-mini-fab.component.d.ts +0 -9
  28. package/lib/fields/button-toogle-group.component.d.ts +0 -11
  29. package/lib/fields/buttonchecker-form.component.d.ts +0 -9
  30. package/lib/fields/buttonfile-form.component.d.ts +0 -9
  31. package/lib/fields/checkbox-indeterminate.component.d.ts +0 -9
  32. package/lib/fields/checkbox.component.d.ts +0 -11
  33. package/lib/fields/chip.component.d.ts +0 -9
  34. package/lib/fields/color.component.d.ts +0 -10
  35. package/lib/fields/date-time.component.d.ts +0 -6
  36. package/lib/fields/date.component.d.ts +0 -9
  37. package/lib/fields/field.abstract.d.ts +0 -38
  38. package/lib/fields/file.component.d.ts +0 -6
  39. package/lib/fields/group.component.d.ts +0 -16
  40. package/lib/fields/icon.component.d.ts +0 -9
  41. package/lib/fields/input.clearable.component.d.ts +0 -8
  42. package/lib/fields/input.component.d.ts +0 -26
  43. package/lib/fields/label.component.d.ts +0 -10
  44. package/lib/fields/line-break.component.d.ts +0 -9
  45. package/lib/fields/link.component.d.ts +0 -9
  46. package/lib/fields/list-field.component.d.ts +0 -19
  47. package/lib/fields/radio.component.d.ts +0 -11
  48. package/lib/fields/range.component.d.ts +0 -9
  49. package/lib/fields/select.component.d.ts +0 -22
  50. package/lib/fields/select.lazy-search.component.d.ts +0 -12
  51. package/lib/fields/select.search.component.d.ts +0 -37
  52. package/lib/fields/selection-list.component.d.ts +0 -15
  53. package/lib/fields/selection-list.search.component.d.ts +0 -18
  54. package/lib/fields/slide-toggle.component.d.ts +0 -9
  55. package/lib/fields/subfields/clear.component.d.ts +0 -18
  56. package/lib/fields/subfields/copy.component.d.ts +0 -18
  57. package/lib/fields/subfields/password-visibility.component.d.ts +0 -13
  58. package/lib/fields/text.component.d.ts +0 -9
  59. package/lib/fields/textarea.component.d.ts +0 -9
  60. package/lib/forms/button-control-base.d.ts +0 -41
  61. package/lib/forms/button-control.component.d.ts +0 -10
  62. package/lib/forms/buttonchecker-control.component.d.ts +0 -14
  63. package/lib/forms/buttonfile-control.component.d.ts +0 -19
  64. package/lib/forms/fab-control.component.d.ts +0 -7
  65. package/lib/forms/file-control.component.d.ts +0 -20
  66. package/lib/forms/icon-button-control.component.d.ts +0 -7
  67. package/lib/forms/indeterminate-checkbox.d.ts +0 -22
  68. package/lib/forms/mini-fab-control.component.d.ts +0 -7
  69. package/lib/interfaces/clear-control.interface.d.ts +0 -4
  70. package/lib/interfaces/component.interface.d.ts +0 -5
  71. package/lib/interfaces/directive.interface.d.ts +0 -3
  72. package/lib/interfaces/field.config.interface.d.ts +0 -101
  73. package/lib/interfaces/field.interface.d.ts +0 -7
  74. package/lib/interfaces/validator.interface.d.ts +0 -17
  75. package/lib/kles-material-dynamicforms.module.d.ts +0 -76
  76. package/lib/matcher/form-error.matcher.d.ts +0 -9
  77. package/lib/modules/material.module.d.ts +0 -42
  78. package/lib/pipe/array.pipe.d.ts +0 -7
  79. package/lib/pipe/transform.pipe.d.ts +0 -10
  80. package/lib/selection/selection-model.d.ts +0 -102
  81. package/lib/token.d.ts +0 -9
  82. package/lib/ui/array.ui.d.ts +0 -5
  83. package/lib/ui/default.ui.d.ts +0 -5
  84. package/lib/ui/group.ui.d.ts +0 -5
  85. package/lib/ui/ui-state/array-ui-state.d.ts +0 -14
  86. package/lib/ui/ui-state/control-ui-state.d.ts +0 -9
  87. package/lib/ui/ui-state/group-ui-state.d.ts +0 -16
  88. package/lib/ui/ui-state/ui-state.abstract.d.ts +0 -16
  89. package/lib/ui/ui.abstract.d.ts +0 -8
  90. package/lib/ui/ui.interface.d.ts +0 -4
  91. package/lib/utils/destroyable.guard.d.ts +0 -4
  92. package/lib/utils/validation.util.d.ts +0 -2
  93. package/lib/validators/autocomplete.validator.d.ts +0 -3
  94. package/public-api.d.ts +0 -102
@@ -1,12 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { KlesFormSelectSearchComponent } from './select.search.component';
4
- import * as i0 from "@angular/core";
5
- export declare class KlesFormSelectLazySearchComponent extends KlesFormSelectSearchComponent implements OnInit, OnDestroy {
6
- ngOnInit(): void;
7
- ngOnDestroy(): void;
8
- protected onSearchChange(value: string): Observable<any[]>;
9
- protected openChangeEvent(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSelectLazySearchComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSelectLazySearchComponent, "kles-form-select-lazy-search", never, {}, {}, never, ["*"], true, never>;
12
- }
@@ -1,37 +0,0 @@
1
- import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
2
- import { ChangeDetectorRef, OnDestroy, OnInit, QueryList } from '@angular/core';
3
- import { UntypedFormControl } from '@angular/forms';
4
- import { MatOption } from '@angular/material/core';
5
- import { BehaviorSubject, Observable, ReplaySubject, Subject } from 'rxjs';
6
- import { KlesFieldAbstract } from './field.abstract';
7
- import { KlesDynamicFormIntl } from '../dynamic-form-intl';
8
- import * as i0 from "@angular/core";
9
- export declare class KlesFormSelectSearchComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
10
- searchControl: UntypedFormControl;
11
- selectAllControl: UntypedFormControl;
12
- isLoading: import("@angular/core").WritableSignal<boolean>;
13
- options$: Observable<any[]>;
14
- optionsFiltered$: ReplaySubject<any[]>;
15
- openChange$: BehaviorSubject<boolean>;
16
- openClosed$: Subject<void>;
17
- cdkVirtualScrollViewport: CdkVirtualScrollViewport;
18
- options: QueryList<MatOption>;
19
- intl: KlesDynamicFormIntl;
20
- protected ref: ChangeDetectorRef;
21
- ngOnInit(): void;
22
- ngOnDestroy(): void;
23
- toggleAllSelection(state: {
24
- checked: any;
25
- }): void;
26
- protected openChangeEvent(): void;
27
- protected onOpenChange(isOpen: boolean): Observable<any[]>;
28
- protected onSearchChange(value: string): Observable<any[]>;
29
- openChange($event: boolean): void;
30
- compareFn: (o1: any, o2: any) => boolean;
31
- selectionChange(selection: {
32
- value: any;
33
- }): void;
34
- updateSelectAllControl(values: any[]): void;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSelectSearchComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSelectSearchComponent, "kles-form-select-search", never, {}, {}, never, ["*"], true, never>;
37
- }
@@ -1,15 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { MatSelectionListChange } from '@angular/material/list';
3
- import { Observable } from 'rxjs';
4
- import { KlesFieldAbstract } from './field.abstract';
5
- import { KlesSelectionModel } from '../selection/selection-model';
6
- import * as i0 from "@angular/core";
7
- export declare class KlesFormSelectionListComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
8
- selection: KlesSelectionModel<any>;
9
- options$: Observable<any[]>;
10
- ngOnInit(): void;
11
- ngOnDestroy(): void;
12
- onSelectionChange(selection: MatSelectionListChange): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSelectionListComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSelectionListComponent, "kles-form-selection-list", never, {}, {}, never, never, true, never>;
15
- }
@@ -1,18 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { MatSelectionListChange } from '@angular/material/list';
3
- import { Observable } from 'rxjs';
4
- import { KlesFieldAbstract } from './field.abstract';
5
- import { KlesSelectionModel } from '../selection/selection-model';
6
- import { FormControl } from '@angular/forms';
7
- import * as i0 from "@angular/core";
8
- export declare class KlesFormSelectionListSearchComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
9
- selection: KlesSelectionModel<any>;
10
- options$: Observable<any[]>;
11
- searchControl: FormControl<any>;
12
- optionFiltered$: Observable<any[]>;
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- onSelectionChange(selection: MatSelectionListChange): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormSelectionListSearchComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormSelectionListSearchComponent, "kles-form-selection-list-search", never, {}, {}, never, never, true, never>;
18
- }
@@ -1,9 +0,0 @@
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, true, never>;
9
- }
@@ -1,18 +0,0 @@
1
- import { OnDestroy, Signal } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { IKlesClearControl } from '../../interfaces/clear-control.interface';
4
- import { IKlesFieldConfig } from '../../interfaces/field.config.interface';
5
- import * as i0 from "@angular/core";
6
- export declare class KlesFormClearComponent implements IKlesClearControl, OnDestroy {
7
- readonly field: IKlesFieldConfig;
8
- readonly group: FormGroup<any>;
9
- readonly siblingFields: IKlesFieldConfig[];
10
- private _onDestroy;
11
- disabled: Signal<boolean>;
12
- constructor();
13
- ngOnDestroy(): void;
14
- clear(event: any): void;
15
- private isPresent;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormClearComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormClearComponent, "kles-form-clear", never, {}, {}, never, never, true, never>;
18
- }
@@ -1,18 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { MatTooltip } from '@angular/material/tooltip';
3
- import { Clipboard } from '@angular/cdk/clipboard';
4
- import { IKlesField } from '../../interfaces/field.interface';
5
- import { IKlesFieldConfig } from '../../interfaces/field.config.interface';
6
- import * as i0 from "@angular/core";
7
- export declare class KlesFormCopyComponent implements IKlesField {
8
- private clipBoard;
9
- tooltip: MatTooltip;
10
- readonly field: IKlesFieldConfig;
11
- readonly group: FormGroup<any>;
12
- readonly siblingFields: IKlesFieldConfig[];
13
- tooltipText: string;
14
- constructor(clipBoard: Clipboard);
15
- copy(event: any): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormCopyComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormCopyComponent, "kles-form-copy", never, {}, {}, never, never, true, never>;
18
- }
@@ -1,13 +0,0 @@
1
- import { FormGroup } from '@angular/forms';
2
- import { IKlesFieldConfig } from '../../interfaces/field.config.interface';
3
- import { IKlesField } from '../../interfaces/field.interface';
4
- import * as i0 from "@angular/core";
5
- export declare class KlesFormPasswordVisibilityComponent implements IKlesField {
6
- readonly field: IKlesFieldConfig;
7
- readonly group: FormGroup<any>;
8
- readonly siblingFields: IKlesFieldConfig[];
9
- hide: import("@angular/core").WritableSignal<boolean>;
10
- toggleVisibility(event: any): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormPasswordVisibilityComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormPasswordVisibilityComponent, "kles-form-password-visibility", never, {}, {}, never, never, true, never>;
13
- }
@@ -1,9 +0,0 @@
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, ["*"], true, never>;
9
- }
@@ -1,9 +0,0 @@
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, ["*"], true, never>;
9
- }
@@ -1,41 +0,0 @@
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
- type?: string;
16
- accept?: string;
17
- }
18
- export declare abstract class KlesButtonBase implements OnInit, ControlValueAccessor {
19
- name: string;
20
- label: string;
21
- color: string;
22
- icon: string;
23
- iconSvg: string;
24
- disabled: boolean;
25
- get type(): any;
26
- set type(value: any);
27
- classButton: string;
28
- value: IButton;
29
- tooltip?: string;
30
- protected _type: string;
31
- onChange: any;
32
- onTouched: any;
33
- ngOnInit(): void;
34
- click(event: any): void;
35
- writeValue(value: IButton): void;
36
- registerOnChange(fn: any): void;
37
- registerOnTouched(fn: any): void;
38
- setDisabledState?(isDisabled: boolean): void;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesButtonBase, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesButtonBase, "ng-component", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "color": { "alias": "color"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSvg": { "alias": "iconSvg"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "classButton": { "alias": "classButton"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, never, true, never>;
41
- }
@@ -1,10 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { KlesButtonBase } from './button-control-base';
3
- import { EnumButtonAttribute } from '../enums/button-attribute.enum';
4
- import * as i0 from "@angular/core";
5
- export declare class KlesButtonComponent extends KlesButtonBase implements OnInit {
6
- mdcClasses: import("@angular/core").WritableSignal<string[]>;
7
- set attribute(attribute: EnumButtonAttribute);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesButtonComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesButtonComponent, "kles-button", never, { "attribute": { "alias": "attribute"; "required": false; }; }, {}, never, never, true, never>;
10
- }
@@ -1,14 +0,0 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
- import { IButton, KlesButtonBase } from './button-control-base';
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 KlesButtonBase 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, true, never>;
14
- }
@@ -1,19 +0,0 @@
1
- import { IButton, KlesButtonBase } from './button-control-base';
2
- import * as i0 from "@angular/core";
3
- export interface IButtonFile extends IButton {
4
- fileContent?: string | string[];
5
- }
6
- export declare class KlesButtonFileComponent extends KlesButtonBase {
7
- file: any;
8
- accept: string;
9
- fileReader: FileReader;
10
- fileContent: string | string[];
11
- value: IButtonFile;
12
- click(event: any): void;
13
- writeValue(value: IButton): void;
14
- onFileLoad(fileLoadedEvent: any): void;
15
- onFileSelect(input: HTMLInputElement): Promise<void>;
16
- readUploadedFile(inputFile: any): Promise<any>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesButtonFileComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesButtonFileComponent, "kles-button-file", never, { "accept": { "alias": "accept"; "required": false; }; }, {}, never, never, true, never>;
19
- }
@@ -1,7 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { KlesButtonBase } from './button-control-base';
3
- import * as i0 from "@angular/core";
4
- export declare class KlesFabComponent extends KlesButtonBase implements OnInit {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFabComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFabComponent, "kles-fab", never, {}, {}, never, never, true, never>;
7
- }
@@ -1,20 +0,0 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- export declare class KlesFileControlComponent implements ControlValueAccessor {
4
- disabled: boolean;
5
- accept: string;
6
- multiple: boolean;
7
- value: {
8
- name: string;
9
- content: ArrayBuffer;
10
- }[];
11
- onChange: any;
12
- onTouched: any;
13
- writeValue(obj: any): void;
14
- onFileSelected(input: HTMLInputElement): Promise<void>;
15
- registerOnChange(fn: any): void;
16
- registerOnTouched(fn: any): void;
17
- setDisabledState?(isDisabled: boolean): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFileControlComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesFileControlComponent, "kles-file-control", never, { "disabled": { "alias": "disabled"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, {}, never, never, true, never>;
20
- }
@@ -1,7 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { KlesButtonBase } from './button-control-base';
3
- import * as i0 from "@angular/core";
4
- export declare class KlesIconButtonComponent extends KlesButtonBase implements OnInit {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesIconButtonComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesIconButtonComponent, "kles-icon-button", never, {}, {}, never, never, true, never>;
7
- }
@@ -1,22 +0,0 @@
1
- import { AfterViewInit } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { MatCheckbox } from '@angular/material/checkbox';
4
- import * as i0 from "@angular/core";
5
- export declare class KlesIndeterminateCheckboxComponent implements ControlValueAccessor, AfterViewInit {
6
- label: string;
7
- color: string;
8
- checkbox: MatCheckbox;
9
- isIndeterminate: boolean;
10
- private innerValue;
11
- onChange: any;
12
- onTouched: any;
13
- ngAfterViewInit(): void;
14
- writeValue(value: any): void;
15
- registerOnChange(fn: any): void;
16
- registerOnTouched(fn: any): void;
17
- setDisabledState?(isDisabled: boolean): void;
18
- onCheckboxChange(event: any): void;
19
- private updateCheckbox;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesIndeterminateCheckboxComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesIndeterminateCheckboxComponent, "kles-checkbox-indeterminate", never, { "label": { "alias": "label"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
22
- }
@@ -1,7 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { KlesButtonBase } from './button-control-base';
3
- import * as i0 from "@angular/core";
4
- export declare class KlesMiniFabComponent extends KlesButtonBase implements OnInit {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesMiniFabComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<KlesMiniFabComponent, "kles-mini-fab", never, {}, {}, never, never, true, never>;
7
- }
@@ -1,4 +0,0 @@
1
- import { IKlesField } from "./field.interface";
2
- export interface IKlesClearControl extends IKlesField {
3
- clear(event: any): void;
4
- }
@@ -1,5 +0,0 @@
1
- import { Type } from "@angular/core";
2
- export interface IKlesComponent {
3
- component: Type<any>;
4
- value: any;
5
- }
@@ -1,3 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- export interface IKlesDirective extends OnInit, OnDestroy {
3
- }
@@ -1,101 +0,0 @@
1
- import { IKlesValidator } from './validator.interface';
2
- import { ValidatorFn, AsyncValidatorFn, UntypedFormGroup } from '@angular/forms';
3
- import { PipeTransform, Provider, StaticProvider, Type, ViewContainerRef } from '@angular/core';
4
- import { Observable, Subject } from 'rxjs';
5
- import { EnumType } from '../enums/type.enum';
6
- import { IKlesField } from './field.interface';
7
- import { IKlesDirective } from './directive.interface';
8
- import { DateAdapter, MatDateFormats } from '@angular/material/core';
9
- import { EnumButtonAttribute } from '../enums/button-attribute.enum';
10
- import { SubscriptSizing } from '@angular/material/form-field';
11
- export interface IKlesFieldUi {
12
- inputType?: 'text' | 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'time' | 'url' | 'week';
13
- min?: number | Date;
14
- max?: number | Date;
15
- maxLength?: number;
16
- step?: number;
17
- hostClass?: string | string[] | Set<string> | {
18
- [klass: string]: any;
19
- };
20
- ngClass?: any;
21
- ngStyle?: any;
22
- indeterminate?: boolean;
23
- color?: string;
24
- icon?: string;
25
- iconSvg?: string;
26
- appearance?: 'fill' | 'outline';
27
- visible?: boolean;
28
- colorOption?: {
29
- disable?: boolean;
30
- position?: 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
31
- positionOffset?: string;
32
- mode?: 'color' | 'grayscale' | 'presets';
33
- format?: 'auto' | 'hex' | 'rgba' | 'hsla';
34
- };
35
- direction?: 'column' | 'row' | 'grid' | 'inline-grid';
36
- textareaAutoSize?: {
37
- minRows?: number;
38
- maxRows?: number;
39
- };
40
- virtualScroll?: boolean;
41
- itemSize?: number;
42
- }
43
- export interface IKlesFormField {
44
- type?: EnumType;
45
- name: string;
46
- component?: Type<any>;
47
- id?: string;
48
- label?: string;
49
- placeholder?: any;
50
- tooltip?: string;
51
- copyTooltip?: string;
52
- options?: any[] | Subject<any[]> | Observable<any[]> | ((value?: string, group?: {
53
- [key: string]: any;
54
- }) => Observable<any[]>);
55
- property?: string;
56
- collections?: any;
57
- value?: any;
58
- asyncValue?: Observable<any>;
59
- multiple?: boolean;
60
- disabled?: boolean;
61
- autocomplete?: boolean;
62
- autocompleteComponent?: Type<any>;
63
- displayWith?: ((value: any) => string) | null;
64
- panelWidth?: string | number;
65
- pending?: boolean;
66
- validations?: IKlesValidator<ValidatorFn>[];
67
- asyncValidations?: IKlesValidator<AsyncValidatorFn>[];
68
- pipeTransform?: {
69
- pipe: PipeTransform;
70
- options?: any[];
71
- }[];
72
- valueChanges?: (field: IKlesFieldConfig, group: UntypedFormGroup, siblingField?: IKlesFieldConfig[], valueChanged?: any) => void;
73
- triggerComponent?: Type<any>;
74
- searchKeys?: string[];
75
- updateOn?: 'change' | 'blur' | 'submit';
76
- debounceTime?: number;
77
- directive?: new (ref: ViewContainerRef, field: IKlesField) => IKlesDirective;
78
- lazy?: boolean;
79
- buttonType?: 'submit' | 'button' | 'reset';
80
- accept?: string;
81
- dateOptions?: {
82
- adapter?: {
83
- class: Type<DateAdapter<any>>;
84
- deps?: any[];
85
- };
86
- language: string;
87
- dateFormat: MatDateFormats;
88
- };
89
- hint?: string;
90
- clearable?: boolean;
91
- clearableComponent?: Type<any>;
92
- subComponents?: Type<any>[];
93
- autofocus?: boolean;
94
- attribute?: EnumButtonAttribute;
95
- subscriptSizing?: SubscriptSizing;
96
- nonNullable?: boolean;
97
- onFocus?: (field: IKlesFieldConfig, group: UntypedFormGroup) => void;
98
- onBlur?: (field: IKlesFieldConfig, group: UntypedFormGroup) => void;
99
- providers?: Array<Provider | StaticProvider>;
100
- }
101
- export type IKlesFieldConfig = IKlesFormField & IKlesFieldUi;
@@ -1,7 +0,0 @@
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,17 +0,0 @@
1
- type Exclusive<T, U> = (T & {
2
- [K in keyof U]?: never;
3
- }) | (U & {
4
- [K in keyof T]?: never;
5
- });
6
- export type KlesValidationKey = {
7
- name: string;
8
- message?: string;
9
- messageKey?: string;
10
- };
11
- type KlesValidatorMultiple = {
12
- keys: KlesValidationKey[];
13
- };
14
- export type IKlesValidator<T> = {
15
- validator: T;
16
- } & Exclusive<KlesValidationKey, KlesValidatorMultiple>;
17
- export {};
@@ -1,76 +0,0 @@
1
- import { KlesDynamicFormComponent } from './dynamic-form.component';
2
- import { KlesComponentDirective } from './directive/dynamic-component.directive';
3
- import { KlesDynamicFieldDirective } from './directive/dynamic-field.directive';
4
- import { KlesFormLabelComponent } from './fields/label.component';
5
- import { KlesTransformPipe } from './pipe/transform.pipe';
6
- import { ArrayFormatPipe } from './pipe/array.pipe';
7
- import { KlesFormClearComponent } from './fields/subfields/clear.component';
8
- import { KlesFabComponent } from './forms/fab-control.component';
9
- import { MatErrorMessageDirective } from './directive/mat-error-message.directive';
10
- import { MatErrorFormDirective } from './directive/mat-error-form.directive';
11
- import { KlesIndeterminateCheckboxComponent } from './forms/indeterminate-checkbox';
12
- import { KlesFileControlComponent } from './forms/file-control.component';
13
- import { KlesFormCopyComponent } from './fields/subfields/copy.component';
14
- import * as i0 from "@angular/core";
15
- import * as i1 from "@angular/common";
16
- import * as i2 from "@angular/forms";
17
- import * as i3 from "./modules/material.module";
18
- import * as i4 from "ngx-mat-select-search";
19
- import * as i5 from "./dynamic-form.component";
20
- import * as i6 from "./fields/label.component";
21
- import * as i7 from "./fields/input.component";
22
- import * as i8 from "./fields/input.clearable.component";
23
- import * as i9 from "./fields/badge.component";
24
- import * as i10 from "./fields/file.component";
25
- import * as i11 from "./forms/file-control.component";
26
- import * as i12 from "./forms/button-control.component";
27
- import * as i13 from "./fields/button-form.component";
28
- import * as i14 from "./forms/buttonchecker-control.component";
29
- import * as i15 from "./fields/buttonchecker-form.component";
30
- import * as i16 from "./forms/buttonfile-control.component";
31
- import * as i17 from "./fields/buttonfile-form.component";
32
- import * as i18 from "./fields/select.component";
33
- import * as i19 from "./fields/date.component";
34
- import * as i20 from "./fields/date-time.component";
35
- import * as i21 from "./fields/radio.component";
36
- import * as i22 from "./fields/checkbox.component";
37
- import * as i23 from "./forms/indeterminate-checkbox";
38
- import * as i24 from "./fields/checkbox-indeterminate.component";
39
- import * as i25 from "./fields/list-field.component";
40
- import * as i26 from "./fields/color.component";
41
- import * as i27 from "./fields/textarea.component";
42
- import * as i28 from "./fields/text.component";
43
- import * as i29 from "./fields/chip.component";
44
- import * as i30 from "./fields/group.component";
45
- import * as i31 from "./fields/icon.component";
46
- import * as i32 from "./fields/select.search.component";
47
- import * as i33 from "./fields/line-break.component";
48
- import * as i34 from "./fields/link.component";
49
- import * as i35 from "./fields/slide-toggle.component";
50
- import * as i36 from "./fields/selection-list.component";
51
- import * as i37 from "./fields/button-toogle-group.component";
52
- import * as i38 from "./fields/array.component";
53
- import * as i39 from "./fields/range.component";
54
- import * as i40 from "./fields/subfields/clear.component";
55
- import * as i41 from "./fields/select.lazy-search.component";
56
- import * as i42 from "./fields/button-fab.component";
57
- import * as i43 from "./forms/fab-control.component";
58
- import * as i44 from "./forms/mini-fab-control.component";
59
- import * as i45 from "./fields/button-mini-fab.component";
60
- import * as i46 from "./forms/icon-button-control.component";
61
- import * as i47 from "./fields/button-icon.component";
62
- import * as i48 from "./fields/selection-list.search.component";
63
- import * as i49 from "./fields/subfields/copy.component";
64
- import * as i50 from "./directive/dynamic-field.directive";
65
- import * as i51 from "./directive/dynamic-component.directive";
66
- import * as i52 from "./directive/mat-error-message.directive";
67
- import * as i53 from "./directive/mat-error-form.directive";
68
- import * as i54 from "./pipe/transform.pipe";
69
- import * as i55 from "./pipe/array.pipe";
70
- import * as i56 from "ngx-color-picker";
71
- export declare class KlesMaterialDynamicformsModule {
72
- static declarations: ((typeof KlesFormClearComponent | typeof KlesDynamicFormComponent | typeof KlesFormLabelComponent | typeof KlesFabComponent | typeof KlesIndeterminateCheckboxComponent | typeof KlesFileControlComponent | typeof KlesFormCopyComponent)[] | (typeof KlesDynamicFieldDirective | typeof MatErrorFormDirective | typeof KlesComponentDirective | typeof MatErrorMessageDirective)[] | (typeof KlesTransformPipe | typeof ArrayFormatPipe)[])[];
73
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesMaterialDynamicformsModule, never>;
74
- static ɵmod: i0.ɵɵNgModuleDeclaration<KlesMaterialDynamicformsModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i2.FormsModule, typeof i3.MaterialModule, typeof i4.NgxMatSelectSearchModule, typeof i5.KlesDynamicFormComponent, typeof i6.KlesFormLabelComponent, typeof i7.KlesFormInputComponent, typeof i8.KlesFormInputClearableComponent, typeof i9.KlesFormBadgeComponent, typeof i10.KlesFormFileComponent, typeof i11.KlesFileControlComponent, typeof i12.KlesButtonComponent, typeof i13.KlesFormButtonComponent, typeof i14.KlesButtonCheckerComponent, typeof i15.KlesFormButtonCheckerComponent, typeof i16.KlesButtonFileComponent, typeof i17.KlesFormButtonFileComponent, typeof i18.KlesFormSelectComponent, typeof i19.KlesFormDateComponent, typeof i20.KlesFormDateTimeComponent, typeof i21.KlesFormRadioComponent, typeof i22.KlesFormCheckboxComponent, typeof i23.KlesIndeterminateCheckboxComponent, typeof i24.KlesFormCheckboxIndeterminateComponent, typeof i25.KlesFormListFieldComponent, typeof i26.KlesFormColorComponent, typeof i27.KlesFormTextareaComponent, typeof i28.KlesFormTextComponent, typeof i29.KlesFormChipComponent, typeof i30.KlesFormGroupComponent, typeof i31.KlesFormIconComponent, typeof i32.KlesFormSelectSearchComponent, typeof i33.KlesFormLineBreakComponent, typeof i34.KlesFormLinkComponent, typeof i35.KlesFormSlideToggleComponent, typeof i36.KlesFormSelectionListComponent, typeof i37.KlesFormButtonToogleGroupComponent, typeof i38.KlesFormArrayComponent, typeof i39.KlesFormRangeComponent, typeof i40.KlesFormClearComponent, typeof i41.KlesFormSelectLazySearchComponent, typeof i42.KlesFormFabComponent, typeof i43.KlesFabComponent, typeof i44.KlesMiniFabComponent, typeof i45.KlesFormMiniFabComponent, typeof i46.KlesIconButtonComponent, typeof i47.KlesFormIconButtonComponent, typeof i48.KlesFormSelectionListSearchComponent, typeof i49.KlesFormCopyComponent, typeof i50.KlesDynamicFieldDirective, typeof i51.KlesComponentDirective, typeof i52.MatErrorMessageDirective, typeof i53.MatErrorFormDirective, typeof i54.KlesTransformPipe, typeof i55.ArrayFormatPipe, typeof i56.ColorPickerComponent, typeof i56.ColorPickerDirective], [typeof i5.KlesDynamicFormComponent, typeof i6.KlesFormLabelComponent, typeof i7.KlesFormInputComponent, typeof i8.KlesFormInputClearableComponent, typeof i9.KlesFormBadgeComponent, typeof i10.KlesFormFileComponent, typeof i11.KlesFileControlComponent, typeof i12.KlesButtonComponent, typeof i13.KlesFormButtonComponent, typeof i14.KlesButtonCheckerComponent, typeof i15.KlesFormButtonCheckerComponent, typeof i16.KlesButtonFileComponent, typeof i17.KlesFormButtonFileComponent, typeof i18.KlesFormSelectComponent, typeof i19.KlesFormDateComponent, typeof i20.KlesFormDateTimeComponent, typeof i21.KlesFormRadioComponent, typeof i22.KlesFormCheckboxComponent, typeof i23.KlesIndeterminateCheckboxComponent, typeof i24.KlesFormCheckboxIndeterminateComponent, typeof i25.KlesFormListFieldComponent, typeof i26.KlesFormColorComponent, typeof i27.KlesFormTextareaComponent, typeof i28.KlesFormTextComponent, typeof i29.KlesFormChipComponent, typeof i30.KlesFormGroupComponent, typeof i31.KlesFormIconComponent, typeof i32.KlesFormSelectSearchComponent, typeof i33.KlesFormLineBreakComponent, typeof i34.KlesFormLinkComponent, typeof i35.KlesFormSlideToggleComponent, typeof i36.KlesFormSelectionListComponent, typeof i37.KlesFormButtonToogleGroupComponent, typeof i38.KlesFormArrayComponent, typeof i39.KlesFormRangeComponent, typeof i40.KlesFormClearComponent, typeof i41.KlesFormSelectLazySearchComponent, typeof i42.KlesFormFabComponent, typeof i43.KlesFabComponent, typeof i44.KlesMiniFabComponent, typeof i45.KlesFormMiniFabComponent, typeof i46.KlesIconButtonComponent, typeof i47.KlesFormIconButtonComponent, typeof i48.KlesFormSelectionListSearchComponent, typeof i49.KlesFormCopyComponent, typeof i54.KlesTransformPipe, typeof i55.ArrayFormatPipe, typeof i50.KlesDynamicFieldDirective, typeof i51.KlesComponentDirective, typeof i52.MatErrorMessageDirective, typeof i53.MatErrorFormDirective]>;
75
- static ɵinj: i0.ɵɵInjectorDeclaration<KlesMaterialDynamicformsModule>;
76
- }
@@ -1,9 +0,0 @@
1
- import { UntypedFormControl, FormGroupDirective, NgForm } from '@angular/forms';
2
- import { ErrorStateMatcher } from '@angular/material/core';
3
- import * as i0 from "@angular/core";
4
- export declare class KlesFormErrorStateMatcher implements ErrorStateMatcher {
5
- constructor();
6
- isErrorState(control: UntypedFormControl | null, form: FormGroupDirective | NgForm | null): boolean;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormErrorStateMatcher, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<KlesFormErrorStateMatcher>;
9
- }
@@ -1,42 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "@angular/material/slider";
4
- import * as i3 from "@angular/material/button";
5
- import * as i4 from "@angular/material/toolbar";
6
- import * as i5 from "@angular/material/icon";
7
- import * as i6 from "@angular/material/sidenav";
8
- import * as i7 from "@angular/material/badge";
9
- import * as i8 from "@angular/material/list";
10
- import * as i9 from "@angular/material/grid-list";
11
- import * as i10 from "@angular/material/form-field";
12
- import * as i11 from "@angular/material/input";
13
- import * as i12 from "@angular/material/select";
14
- import * as i13 from "@angular/material/radio";
15
- import * as i14 from "@angular/material/datepicker";
16
- import * as i15 from "@angular/material/chips";
17
- import * as i16 from "@angular/material/tooltip";
18
- import * as i17 from "@angular/material/table";
19
- import * as i18 from "@angular/material/paginator";
20
- import * as i19 from "@angular/material/card";
21
- import * as i20 from "@angular/material/menu";
22
- import * as i21 from "@angular/material/tabs";
23
- import * as i22 from "@angular/cdk/table";
24
- import * as i23 from "@angular/material/progress-spinner";
25
- import * as i24 from "@angular/material/checkbox";
26
- import * as i25 from "@angular/material/dialog";
27
- import * as i26 from "@angular/material/autocomplete";
28
- import * as i27 from "@angular/material/progress-bar";
29
- import * as i28 from "@angular/material/sort";
30
- import * as i29 from "@angular/material/expansion";
31
- import * as i30 from "@angular/material/core";
32
- import * as i31 from "@angular/material/snack-bar";
33
- import * as i32 from "@angular/material/tree";
34
- import * as i33 from "@angular/material/slide-toggle";
35
- import * as i34 from "@angular/material/button-toggle";
36
- import * as i35 from "@angular/cdk/portal";
37
- import * as i36 from "@angular/cdk/scrolling";
38
- export declare class MaterialModule {
39
- static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
40
- static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1.CommonModule, typeof i2.MatSliderModule, typeof i3.MatButtonModule, typeof i4.MatToolbarModule, typeof i5.MatIconModule, typeof i6.MatSidenavModule, typeof i7.MatBadgeModule, typeof i8.MatListModule, typeof i9.MatGridListModule, typeof i10.MatFormFieldModule, typeof i11.MatInputModule, typeof i12.MatSelectModule, typeof i13.MatRadioModule, typeof i14.MatDatepickerModule, typeof i15.MatChipsModule, typeof i16.MatTooltipModule, typeof i17.MatTableModule, typeof i18.MatPaginatorModule, typeof i19.MatCardModule, typeof i20.MatMenuModule, typeof i21.MatTabsModule, typeof i22.CdkTableModule, typeof i23.MatProgressSpinnerModule, typeof i24.MatCheckboxModule, typeof i25.MatDialogModule, typeof i26.MatAutocompleteModule, typeof i27.MatProgressBarModule, typeof i28.MatSortModule, typeof i29.MatExpansionModule, typeof i30.MatNativeDateModule, typeof i31.MatSnackBarModule, typeof i32.MatTreeModule, typeof i2.MatSliderModule, typeof i33.MatSlideToggleModule, typeof i34.MatButtonToggleModule, typeof i35.PortalModule], [typeof i3.MatButtonModule, typeof i4.MatToolbarModule, typeof i5.MatIconModule, typeof i6.MatSidenavModule, typeof i7.MatBadgeModule, typeof i8.MatListModule, typeof i9.MatGridListModule, typeof i11.MatInputModule, typeof i10.MatFormFieldModule, typeof i12.MatSelectModule, typeof i13.MatRadioModule, typeof i14.MatDatepickerModule, typeof i15.MatChipsModule, typeof i16.MatTooltipModule, typeof i17.MatTableModule, typeof i18.MatPaginatorModule, typeof i19.MatCardModule, typeof i20.MatMenuModule, typeof i21.MatTabsModule, typeof i22.CdkTableModule, typeof i23.MatProgressSpinnerModule, typeof i24.MatCheckboxModule, typeof i25.MatDialogModule, typeof i26.MatAutocompleteModule, typeof i27.MatProgressBarModule, typeof i28.MatSortModule, typeof i29.MatExpansionModule, typeof i30.MatNativeDateModule, typeof i31.MatSnackBarModule, typeof i32.MatTreeModule, typeof i2.MatSliderModule, typeof i33.MatSlideToggleModule, typeof i36.ScrollingModule, typeof i36.CdkScrollable, typeof i34.MatButtonToggleModule, typeof i35.PortalModule]>;
41
- static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
42
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export declare class ArrayFormatPipe implements PipeTransform {
4
- transform(values: any[], property?: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFormatPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<ArrayFormatPipe, "arrayFormat", true>;
7
- }