@3kles/kles-material-dynamicforms 19.3.2 → 19.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/3kles-kles-material-dynamicforms.mjs +1572 -1123
- package/fesm2022/3kles-kles-material-dynamicforms.mjs.map +1 -1
- package/lib/controls/control.abstract.d.ts +5 -5
- package/lib/decorators/component.decorator.d.ts +4 -1
- package/lib/directive/dynamic-field.directive.d.ts +3 -1
- package/lib/dynamic-form.component.d.ts +4 -0
- package/lib/factories/field.factory.d.ts +3 -2
- package/lib/fields/array.component.d.ts +3 -0
- package/lib/fields/checkbox.component.d.ts +2 -0
- package/lib/fields/date.component.d.ts +1 -1
- package/lib/fields/field.abstract.d.ts +23 -9
- package/lib/fields/group.component.d.ts +2 -0
- package/lib/fields/icon.component.d.ts +1 -1
- package/lib/fields/input.clearable.component.d.ts +1 -5
- package/lib/fields/input.component.d.ts +3 -4
- package/lib/fields/label.component.d.ts +2 -1
- package/lib/fields/list-field.component.d.ts +3 -5
- package/lib/fields/select.component.d.ts +3 -5
- package/lib/fields/select.lazy-search.component.d.ts +1 -6
- package/lib/fields/select.search.component.d.ts +3 -5
- package/lib/fields/subfields/clear.component.d.ts +14 -9
- package/lib/fields/subfields/copy.component.d.ts +18 -0
- package/lib/fields/subfields/password-visibility.component.d.ts +6 -6
- package/lib/interfaces/field.config.interface.d.ts +38 -35
- package/lib/kles-material-dynamicforms.module.d.ts +3 -7
- package/lib/token.d.ts +9 -0
- package/lib/ui/array.ui.d.ts +5 -0
- package/lib/ui/default.ui.d.ts +5 -0
- package/lib/ui/group.ui.d.ts +5 -0
- package/lib/ui/ui-state/array-ui-state.d.ts +9 -0
- package/lib/ui/ui-state/control-ui-state.d.ts +7 -0
- package/lib/ui/ui-state/group-ui-state.d.ts +13 -0
- package/lib/ui/ui-state/ui-state.abstract.d.ts +11 -0
- package/lib/ui/ui.abstract.d.ts +8 -0
- package/lib/ui/ui.interface.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +11 -1
- package/lib/fields/copy.component.d.ts +0 -20
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AbstractControl, ValidatorFn, AsyncValidatorFn } from
|
|
2
|
-
import { IKlesValidator } from
|
|
3
|
-
import { IKlesFieldConfig } from
|
|
4
|
-
import { IKlesControl } from
|
|
5
|
-
import { ChangeDetectorRef } from
|
|
1
|
+
import { AbstractControl, ValidatorFn, AsyncValidatorFn } from '@angular/forms';
|
|
2
|
+
import { IKlesValidator } from '../interfaces/validator.interface';
|
|
3
|
+
import { IKlesFieldConfig } from '../interfaces/field.config.interface';
|
|
4
|
+
import { IKlesControl } from './control.interface';
|
|
5
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
6
6
|
export declare abstract class KlesAbstractFormControl implements IKlesControl {
|
|
7
7
|
protected field: IKlesFieldConfig;
|
|
8
8
|
protected ref?: ChangeDetectorRef;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ChangeDetectorRef, Type } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
3
|
import { IKlesFieldConfig } from '../interfaces/field.config.interface';
|
|
4
|
+
import { AbstractUiState } from '../ui/ui-state/ui-state.abstract';
|
|
4
5
|
export declare const componentMapper: {
|
|
5
6
|
component: Type<any>;
|
|
6
7
|
type: string;
|
|
7
|
-
factory: (
|
|
8
|
+
factory: (field: IKlesFieldConfig, ref?: ChangeDetectorRef) => AbstractControl<any, any>;
|
|
9
|
+
ui?: (field: IKlesFieldConfig) => AbstractUiState<any, any>;
|
|
8
10
|
}[];
|
|
9
11
|
export declare function FieldMapper(config: {
|
|
10
12
|
type: string;
|
|
11
13
|
factory?: (field: IKlesFieldConfig) => AbstractControl<any, any>;
|
|
14
|
+
ui?: (field: IKlesFieldConfig) => AbstractUiState<any, any>;
|
|
12
15
|
}): (target: Type<any>) => void;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { OnInit, ViewContainerRef, ComponentRef, OnChanges, SimpleChanges, OnDestroy, Injector } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { IKlesFieldConfig } from '../interfaces/field.config.interface';
|
|
4
|
+
import { GroupUiState } from '../ui/ui-state/group-ui-state';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class KlesDynamicFieldDirective implements OnInit, OnChanges, OnDestroy {
|
|
6
7
|
protected container: ViewContainerRef;
|
|
7
8
|
private injector;
|
|
8
9
|
field: IKlesFieldConfig;
|
|
9
10
|
group: UntypedFormGroup;
|
|
11
|
+
ui: GroupUiState;
|
|
10
12
|
siblingFields: IKlesFieldConfig[];
|
|
11
13
|
componentRef: ComponentRef<any>;
|
|
12
14
|
subComponents: ComponentRef<any>[];
|
|
@@ -18,5 +20,5 @@ export declare class KlesDynamicFieldDirective implements OnInit, OnChanges, OnD
|
|
|
18
20
|
protected createComponentRef(injector: Injector): ComponentRef<any>;
|
|
19
21
|
private createSubComponent;
|
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesDynamicFieldDirective, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KlesDynamicFieldDirective, "[klesDynamicField]", never, { "field": { "alias": "field"; "required": false; }; "group": { "alias": "group"; "required": false; }; "siblingFields": { "alias": "siblingFields"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KlesDynamicFieldDirective, "[klesDynamicField]", never, { "field": { "alias": "field"; "required": false; }; "group": { "alias": "group"; "required": false; }; "ui": { "alias": "ui"; "required": false; }; "siblingFields": { "alias": "siblingFields"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
24
|
}
|
|
@@ -2,6 +2,7 @@ import { OnInit, EventEmitter, OnChanges, SimpleChanges, ChangeDetectorRef } fro
|
|
|
2
2
|
import { UntypedFormGroup, UntypedFormBuilder, ValidatorFn, AsyncValidatorFn } from '@angular/forms';
|
|
3
3
|
import { IKlesFieldConfig } from './interfaces/field.config.interface';
|
|
4
4
|
import { IKlesValidator } from './interfaces/validator.interface';
|
|
5
|
+
import { GroupUiState } from './ui/ui-state/group-ui-state';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class KlesDynamicFormComponent implements OnInit, OnChanges {
|
|
7
8
|
private fb;
|
|
@@ -16,6 +17,7 @@ export declare class KlesDynamicFormComponent implements OnInit, OnChanges {
|
|
|
16
17
|
[klass: string]: any;
|
|
17
18
|
};
|
|
18
19
|
form: UntypedFormGroup;
|
|
20
|
+
ui: GroupUiState;
|
|
19
21
|
orientationClass: 'dynamic-form-column' | 'dynamic-form-row' | 'dynamic-form-grid' | 'dynamic-form-inline-grid';
|
|
20
22
|
get value(): any;
|
|
21
23
|
constructor(fb: UntypedFormBuilder, ref: ChangeDetectorRef);
|
|
@@ -26,8 +28,10 @@ export declare class KlesDynamicFormComponent implements OnInit, OnChanges {
|
|
|
26
28
|
private updateForm;
|
|
27
29
|
private updateControl;
|
|
28
30
|
private createControl;
|
|
31
|
+
private createUiState;
|
|
29
32
|
private createForm;
|
|
30
33
|
private validateAllFormFields;
|
|
34
|
+
private createUi;
|
|
31
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesDynamicFormComponent, never>;
|
|
32
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<KlesDynamicFormComponent, "app-kles-dynamic-form", ["klesDynamicForm"], { "fields": { "alias": "fields"; "required": false; }; "validators": { "alias": "validators"; "required": false; }; "asyncValidators": { "alias": "asyncValidators"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "formClass": { "alias": "formClass"; "required": false; }; }, { "submit": "submit"; "_onLoaded": "_onLoaded"; }, never, never, true, never>;
|
|
33
37
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from
|
|
2
|
-
import { IKlesFieldConfig } from
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { IKlesFieldConfig } from '../interfaces/field.config.interface';
|
|
3
3
|
export declare const klesFieldControlFactory: (field: IKlesFieldConfig, ref?: ChangeDetectorRef) => import("@angular/forms").AbstractControl<any, any>;
|
|
4
|
+
export declare const klesFieldUiFactory: (field: IKlesFieldConfig) => import("@3kles/kles-material-dynamicforms").AbstractUiState<any, any>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormArray } from '@angular/forms';
|
|
3
3
|
import { KlesFieldAbstract } from './field.abstract';
|
|
4
|
+
import { ArrayUiState } from '../ui/ui-state/array-ui-state';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class KlesFormArrayComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
6
7
|
formArray: UntypedFormArray;
|
|
8
|
+
subUi: ArrayUiState;
|
|
9
|
+
constructor();
|
|
7
10
|
ngOnInit(): void;
|
|
8
11
|
ngOnDestroy(): void;
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormArrayComponent, never>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class KlesFormCheckboxComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
6
|
ngOnInit(): void;
|
|
6
7
|
ngOnDestroy(): void;
|
|
8
|
+
onChange(e: MatCheckboxChange): void;
|
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormCheckboxComponent, never>;
|
|
8
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormCheckboxComponent, "kles-form-checkbox", never, {}, {}, never, never, true, never>;
|
|
9
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { KlesFieldAbstract } from './field.abstract';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class KlesFormDateComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
import { IKlesField } from '../interfaces/field.interface';
|
|
2
|
-
import { IKlesFieldConfig } from '../interfaces/field.config.interface';
|
|
3
|
-
import { UntypedFormGroup } from '@angular/forms';
|
|
4
1
|
import { AfterViewInit, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
5
2
|
import { Subject } from 'rxjs';
|
|
3
|
+
import { IKlesField } from '../interfaces/field.interface';
|
|
4
|
+
import type { IKlesFieldConfig } from '../interfaces/field.config.interface';
|
|
5
|
+
import { FormGroup } from '@angular/forms';
|
|
6
|
+
import { GroupUiState } from '../ui/ui-state/group-ui-state';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare abstract class KlesFieldAbstract implements IKlesField, OnInit, AfterViewInit, OnDestroy {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
readonly field: IKlesFieldConfig;
|
|
10
|
+
readonly group: FormGroup<any>;
|
|
11
|
+
readonly siblingFields: IKlesFieldConfig[];
|
|
12
|
+
readonly ui: GroupUiState<any>;
|
|
13
|
+
appearance: import("@angular/core").Signal<any>;
|
|
14
|
+
inputType: import("@angular/core").Signal<any>;
|
|
15
|
+
min: import("@angular/core").Signal<any>;
|
|
16
|
+
max: import("@angular/core").Signal<any>;
|
|
17
|
+
maxLength: import("@angular/core").Signal<any>;
|
|
18
|
+
step: import("@angular/core").Signal<any>;
|
|
19
|
+
ngClass: import("@angular/core").Signal<any>;
|
|
20
|
+
ngStyle: import("@angular/core").Signal<any>;
|
|
21
|
+
indeterminate: import("@angular/core").Signal<any>;
|
|
22
|
+
color: import("@angular/core").Signal<any>;
|
|
23
|
+
icon: import("@angular/core").Signal<any>;
|
|
24
|
+
iconSvg: import("@angular/core").Signal<any>;
|
|
25
|
+
protected readonly viewRef: ViewContainerRef;
|
|
12
26
|
directive: any;
|
|
13
27
|
protected _onDestroy: Subject<void>;
|
|
14
|
-
constructor(
|
|
28
|
+
constructor();
|
|
15
29
|
ngOnInit(): void;
|
|
16
30
|
ngAfterViewInit(): void;
|
|
17
31
|
ngOnDestroy(): void;
|
|
@@ -20,5 +34,5 @@ export declare abstract class KlesFieldAbstract implements IKlesField, OnInit, A
|
|
|
20
34
|
onFocus(): void;
|
|
21
35
|
onBlur(): void;
|
|
22
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFieldAbstract, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KlesFieldAbstract, never, never, {
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KlesFieldAbstract, never, never, {}, {}, never, never, true, never>;
|
|
24
38
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { KlesFieldAbstract } from './field.abstract';
|
|
4
|
+
import { GroupUiState } from '../ui/ui-state/group-ui-state';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class KlesFormGroupComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
6
7
|
orientationClass: 'group-container' | 'group-container-column' | 'group-container-row' | 'group-container-grid' | 'group-container-inline-grid';
|
|
7
8
|
get className(): "group-container" | "group-container-column" | "group-container-row" | "group-container-grid" | "group-container-inline-grid";
|
|
8
9
|
subGroup: UntypedFormGroup;
|
|
10
|
+
subUi: GroupUiState;
|
|
9
11
|
ngOnInit(): void;
|
|
10
12
|
ngOnDestroy(): void;
|
|
11
13
|
private setOrientationClass;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { KlesFieldAbstract } from './field.abstract';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class KlesFormIconComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { OnInit, OnDestroy
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { KlesFormInputComponent } from './input.component';
|
|
3
|
-
import { KlesDynamicFormIntl } from '../dynamic-form-intl';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class KlesFormInputClearableComponent extends KlesFormInputComponent implements OnInit, OnDestroy {
|
|
6
|
-
protected viewRef: ViewContainerRef;
|
|
7
|
-
intl: KlesDynamicFormIntl;
|
|
8
|
-
constructor(viewRef: ViewContainerRef, intl: KlesDynamicFormIntl);
|
|
9
5
|
ngOnDestroy(): void;
|
|
10
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormInputClearableComponent, never>;
|
|
11
7
|
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormInputClearableComponent, "kles-form-input-clearable", never, {}, {}, never, never, true, never>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { KlesFieldAbstract } from './field.abstract';
|
|
2
|
-
import { OnInit, OnDestroy
|
|
2
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { KlesDynamicFormIntl } from '../dynamic-form-intl';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class KlesFormInputComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
7
|
-
protected viewRef: ViewContainerRef;
|
|
8
|
-
intl: KlesDynamicFormIntl;
|
|
9
7
|
filteredOption$: Observable<{
|
|
10
8
|
loading: boolean;
|
|
11
9
|
options: any[];
|
|
@@ -16,7 +14,8 @@ export declare class KlesFormInputComponent extends KlesFieldAbstract implements
|
|
|
16
14
|
}>;
|
|
17
15
|
private isFocused;
|
|
18
16
|
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
-
|
|
17
|
+
intl: KlesDynamicFormIntl;
|
|
18
|
+
constructor();
|
|
20
19
|
ngOnInit(): void;
|
|
21
20
|
onFocus(): void;
|
|
22
21
|
private filterData;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { KlesFieldAbstract } from './field.abstract';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class KlesFormLabelComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
5
|
+
constructor();
|
|
5
6
|
ngOnInit(): void;
|
|
6
7
|
ngOnDestroy(): void;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormLabelComponent, never>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { OnDestroy, OnInit
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { KlesFieldAbstract } from './field.abstract';
|
|
3
|
-
import { UntypedFormArray
|
|
3
|
+
import { UntypedFormArray } from '@angular/forms';
|
|
4
4
|
import { IKlesFieldConfig } from '../interfaces/field.config.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class KlesFormListFieldComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
7
|
-
private fb;
|
|
8
|
-
protected viewRef: ViewContainerRef;
|
|
9
7
|
formArray: UntypedFormArray;
|
|
10
8
|
collections: IKlesFieldConfig[][];
|
|
11
|
-
|
|
9
|
+
private fb;
|
|
12
10
|
ngOnInit(): void;
|
|
13
11
|
private createFormGroup;
|
|
14
12
|
deleteField(index: number): void;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
|
-
import { ChangeDetectorRef, OnDestroy, OnInit, QueryList
|
|
2
|
+
import { ChangeDetectorRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
3
3
|
import { MatOption } from '@angular/material/core';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import { KlesFieldAbstract } from './field.abstract';
|
|
6
6
|
import { KlesDynamicFormIntl } from '../dynamic-form-intl';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class KlesFormSelectComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
9
|
-
protected viewRef: ViewContainerRef;
|
|
10
|
-
protected ref: ChangeDetectorRef;
|
|
11
|
-
intl: KlesDynamicFormIntl;
|
|
12
9
|
cdkVirtualScrollViewport: CdkVirtualScrollViewport;
|
|
13
10
|
options: QueryList<MatOption>;
|
|
14
11
|
options$: Observable<any[]>;
|
|
15
12
|
isLoading: boolean;
|
|
16
13
|
openChange$: Subject<boolean>;
|
|
17
|
-
|
|
14
|
+
intl: KlesDynamicFormIntl;
|
|
15
|
+
protected ref: ChangeDetectorRef;
|
|
18
16
|
ngOnInit(): void;
|
|
19
17
|
ngOnDestroy(): void;
|
|
20
18
|
openChange($event: boolean): void;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { KlesFormSelectSearchComponent } from './select.search.component';
|
|
4
|
-
import { KlesDynamicFormIntl } from '../dynamic-form-intl';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class KlesFormSelectLazySearchComponent extends KlesFormSelectSearchComponent implements OnInit, OnDestroy {
|
|
7
|
-
protected viewRef: ViewContainerRef;
|
|
8
|
-
protected ref: ChangeDetectorRef;
|
|
9
|
-
intl: KlesDynamicFormIntl;
|
|
10
|
-
constructor(viewRef: ViewContainerRef, ref: ChangeDetectorRef, intl: KlesDynamicFormIntl);
|
|
11
6
|
ngOnInit(): void;
|
|
12
7
|
ngOnDestroy(): void;
|
|
13
8
|
protected onSearchChange(value: string): Observable<any[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
|
-
import { ChangeDetectorRef, OnDestroy, OnInit, QueryList
|
|
2
|
+
import { ChangeDetectorRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
3
3
|
import { UntypedFormControl } from '@angular/forms';
|
|
4
4
|
import { MatOption } from '@angular/material/core';
|
|
5
5
|
import { BehaviorSubject, Observable, ReplaySubject, Subject } from 'rxjs';
|
|
@@ -7,9 +7,6 @@ import { KlesFieldAbstract } from './field.abstract';
|
|
|
7
7
|
import { KlesDynamicFormIntl } from '../dynamic-form-intl';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class KlesFormSelectSearchComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
10
|
-
protected viewRef: ViewContainerRef;
|
|
11
|
-
protected ref: ChangeDetectorRef;
|
|
12
|
-
intl: KlesDynamicFormIntl;
|
|
13
10
|
searchControl: UntypedFormControl;
|
|
14
11
|
selectAllControl: UntypedFormControl;
|
|
15
12
|
isLoading: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -19,7 +16,8 @@ export declare class KlesFormSelectSearchComponent extends KlesFieldAbstract imp
|
|
|
19
16
|
openClosed$: Subject<void>;
|
|
20
17
|
cdkVirtualScrollViewport: CdkVirtualScrollViewport;
|
|
21
18
|
options: QueryList<MatOption>;
|
|
22
|
-
|
|
19
|
+
intl: KlesDynamicFormIntl;
|
|
20
|
+
protected ref: ChangeDetectorRef;
|
|
23
21
|
ngOnInit(): void;
|
|
24
22
|
ngOnDestroy(): void;
|
|
25
23
|
toggleAllSelection(state: any): void;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class KlesFormClearComponent implements IKlesClearControl {
|
|
6
|
-
field: IKlesFieldConfig;
|
|
7
|
-
group:
|
|
8
|
-
siblingFields: IKlesFieldConfig[];
|
|
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;
|
|
9
14
|
clear(event: any): void;
|
|
10
|
-
|
|
15
|
+
private isPresent;
|
|
11
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormClearComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormClearComponent, "kles-form-clear", never, {
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormClearComponent, "kles-form-clear", never, {}, {}, never, never, true, never>;
|
|
13
18
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
2
|
import { IKlesFieldConfig } from '../../interfaces/field.config.interface';
|
|
3
3
|
import { IKlesField } from '../../interfaces/field.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class KlesFormPasswordVisibilityComponent implements IKlesField {
|
|
6
|
-
field: IKlesFieldConfig;
|
|
7
|
-
group:
|
|
8
|
-
siblingFields: IKlesFieldConfig[];
|
|
9
|
-
hide: boolean
|
|
6
|
+
readonly field: IKlesFieldConfig;
|
|
7
|
+
readonly group: FormGroup<any>;
|
|
8
|
+
readonly siblingFields: IKlesFieldConfig[];
|
|
9
|
+
hide: import("@angular/core").WritableSignal<boolean>;
|
|
10
10
|
toggleVisibility(event: any): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesFormPasswordVisibilityComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormPasswordVisibilityComponent, "kles-form-password-visibility", never, {
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesFormPasswordVisibilityComponent, "kles-form-password-visibility", never, {}, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -8,26 +8,48 @@ import { IKlesDirective } from './directive.interface';
|
|
|
8
8
|
import { DateAdapter, MatDateFormats } from '@angular/material/core';
|
|
9
9
|
import { EnumButtonAttribute } from '../enums/button-attribute.enum';
|
|
10
10
|
import { SubscriptSizing } from '@angular/material/form-field';
|
|
11
|
-
export interface
|
|
12
|
-
type?: EnumType;
|
|
13
|
-
name: string;
|
|
14
|
-
component?: Type<any>;
|
|
15
|
-
id?: string;
|
|
16
|
-
label?: string;
|
|
17
|
-
placeholder?: any;
|
|
18
|
-
tooltip?: string;
|
|
19
|
-
copyTooltip?: string;
|
|
11
|
+
export interface IKlesFieldUi {
|
|
20
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';
|
|
21
13
|
min?: number | Date;
|
|
22
14
|
max?: number | Date;
|
|
23
15
|
maxLength?: number;
|
|
24
16
|
step?: number;
|
|
25
|
-
options?: any[] | Subject<any[]> | Observable<any[]> | ((value?: string) => Observable<any[]>);
|
|
26
17
|
hostClass?: string | string[] | Set<string> | {
|
|
27
18
|
[klass: string]: any;
|
|
28
19
|
};
|
|
29
20
|
ngClass?: any;
|
|
30
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) => Observable<any[]>);
|
|
31
53
|
property?: string;
|
|
32
54
|
collections?: any;
|
|
33
55
|
value?: any;
|
|
@@ -38,31 +60,19 @@ export interface IKlesFieldConfig {
|
|
|
38
60
|
autocompleteComponent?: Type<any>;
|
|
39
61
|
displayWith?: ((value: any) => string) | null;
|
|
40
62
|
panelWidth?: string | number;
|
|
41
|
-
|
|
42
|
-
color?: string;
|
|
43
|
-
icon?: string;
|
|
44
|
-
iconSvg?: string;
|
|
45
|
-
textareaAutoSize?: {
|
|
46
|
-
minRows?: number;
|
|
47
|
-
maxRows?: number;
|
|
48
|
-
};
|
|
63
|
+
pending?: boolean;
|
|
49
64
|
validations?: IKlesValidator<ValidatorFn>[];
|
|
50
65
|
asyncValidations?: IKlesValidator<AsyncValidatorFn>[];
|
|
51
66
|
pipeTransform?: {
|
|
52
67
|
pipe: PipeTransform;
|
|
53
68
|
options?: any[];
|
|
54
69
|
}[];
|
|
55
|
-
|
|
56
|
-
valueChanges?: ((field: IKlesFieldConfig, group: UntypedFormGroup, siblingField?: IKlesFieldConfig[], valueChanged?: any) => void);
|
|
70
|
+
valueChanges?: (field: IKlesFieldConfig, group: UntypedFormGroup, siblingField?: IKlesFieldConfig[], valueChanged?: any) => void;
|
|
57
71
|
triggerComponent?: Type<any>;
|
|
58
|
-
virtualScroll?: boolean;
|
|
59
|
-
itemSize?: number;
|
|
60
|
-
pending?: boolean;
|
|
61
72
|
searchKeys?: string[];
|
|
62
73
|
updateOn?: 'change' | 'blur' | 'submit';
|
|
63
74
|
debounceTime?: number;
|
|
64
|
-
directive?:
|
|
65
|
-
visible?: boolean;
|
|
75
|
+
directive?: new (ref: ViewContainerRef, field: IKlesField) => IKlesDirective;
|
|
66
76
|
lazy?: boolean;
|
|
67
77
|
buttonType?: 'submit' | 'button' | 'reset';
|
|
68
78
|
accept?: string;
|
|
@@ -82,15 +92,8 @@ export interface IKlesFieldConfig {
|
|
|
82
92
|
attribute?: EnumButtonAttribute;
|
|
83
93
|
subscriptSizing?: SubscriptSizing;
|
|
84
94
|
nonNullable?: boolean;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
disable?: boolean;
|
|
88
|
-
position?: 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
89
|
-
positionOffset?: string;
|
|
90
|
-
mode?: 'color' | 'grayscale' | 'presets';
|
|
91
|
-
format?: 'auto' | 'hex' | 'rgba' | 'hsla';
|
|
92
|
-
};
|
|
93
|
-
onFocus?: ((field: IKlesFieldConfig, group: UntypedFormGroup) => void);
|
|
94
|
-
onBlur?: ((field: IKlesFieldConfig, group: UntypedFormGroup) => void);
|
|
95
|
+
onFocus?: (field: IKlesFieldConfig, group: UntypedFormGroup) => void;
|
|
96
|
+
onBlur?: (field: IKlesFieldConfig, group: UntypedFormGroup) => void;
|
|
95
97
|
providers?: Array<Provider | StaticProvider>;
|
|
96
98
|
}
|
|
99
|
+
export type IKlesFieldConfig = IKlesFormField & IKlesFieldUi;
|
|
@@ -2,19 +2,15 @@ import { KlesDynamicFormComponent } from './dynamic-form.component';
|
|
|
2
2
|
import { KlesComponentDirective } from './directive/dynamic-component.directive';
|
|
3
3
|
import { KlesDynamicFieldDirective } from './directive/dynamic-field.directive';
|
|
4
4
|
import { KlesFormLabelComponent } from './fields/label.component';
|
|
5
|
-
import { KlesFormInputComponent } from './fields/input.component';
|
|
6
|
-
import { KlesFormSelectComponent } from './fields/select.component';
|
|
7
|
-
import { KlesFormListFieldComponent } from './fields/list-field.component';
|
|
8
5
|
import { KlesTransformPipe } from './pipe/transform.pipe';
|
|
9
|
-
import { KlesFormSelectSearchComponent } from './fields/select.search.component';
|
|
10
6
|
import { ArrayFormatPipe } from './pipe/array.pipe';
|
|
11
7
|
import { KlesFormClearComponent } from './fields/subfields/clear.component';
|
|
12
8
|
import { KlesFabComponent } from './forms/fab-control.component';
|
|
13
9
|
import { MatErrorMessageDirective } from './directive/mat-error-message.directive';
|
|
14
10
|
import { MatErrorFormDirective } from './directive/mat-error-form.directive';
|
|
15
11
|
import { KlesIndeterminateCheckboxComponent } from './forms/indeterminate-checkbox';
|
|
16
|
-
import { KlesFormCopyComponent } from './fields/copy.component';
|
|
17
12
|
import { KlesFileControlComponent } from './forms/file-control.component';
|
|
13
|
+
import { KlesFormCopyComponent } from './fields/subfields/copy.component';
|
|
18
14
|
import * as i0 from "@angular/core";
|
|
19
15
|
import * as i1 from "@angular/common";
|
|
20
16
|
import * as i2 from "@angular/forms";
|
|
@@ -63,7 +59,7 @@ import * as i44 from "./fields/button-mini-fab.component";
|
|
|
63
59
|
import * as i45 from "./forms/icon-button-control.component";
|
|
64
60
|
import * as i46 from "./fields/button-icon.component";
|
|
65
61
|
import * as i47 from "./fields/selection-list.search.component";
|
|
66
|
-
import * as i48 from "./fields/copy.component";
|
|
62
|
+
import * as i48 from "./fields/subfields/copy.component";
|
|
67
63
|
import * as i49 from "./directive/dynamic-field.directive";
|
|
68
64
|
import * as i50 from "./directive/dynamic-component.directive";
|
|
69
65
|
import * as i51 from "./directive/mat-error-message.directive";
|
|
@@ -72,7 +68,7 @@ import * as i53 from "./pipe/transform.pipe";
|
|
|
72
68
|
import * as i54 from "./pipe/array.pipe";
|
|
73
69
|
import * as i55 from "ngx-color-picker";
|
|
74
70
|
export declare class KlesMaterialDynamicformsModule {
|
|
75
|
-
static declarations: ((typeof KlesFormClearComponent | typeof KlesDynamicFormComponent | typeof KlesFormLabelComponent | typeof
|
|
71
|
+
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)[])[];
|
|
76
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesMaterialDynamicformsModule, never>;
|
|
77
73
|
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.KlesFormRadioComponent, typeof i21.KlesFormCheckboxComponent, typeof i22.KlesIndeterminateCheckboxComponent, typeof i23.KlesFormCheckboxIndeterminateComponent, typeof i24.KlesFormListFieldComponent, typeof i25.KlesFormColorComponent, typeof i26.KlesFormTextareaComponent, typeof i27.KlesFormTextComponent, typeof i28.KlesFormChipComponent, typeof i29.KlesFormGroupComponent, typeof i30.KlesFormIconComponent, typeof i31.KlesFormSelectSearchComponent, typeof i32.KlesFormLineBreakComponent, typeof i33.KlesFormLinkComponent, typeof i34.KlesFormSlideToggleComponent, typeof i35.KlesFormSelectionListComponent, typeof i36.KlesFormButtonToogleGroupComponent, typeof i37.KlesFormArrayComponent, typeof i38.KlesFormRangeComponent, typeof i39.KlesFormClearComponent, typeof i40.KlesFormSelectLazySearchComponent, typeof i41.KlesFormFabComponent, typeof i42.KlesFabComponent, typeof i43.KlesMiniFabComponent, typeof i44.KlesFormMiniFabComponent, typeof i45.KlesIconButtonComponent, typeof i46.KlesFormIconButtonComponent, typeof i47.KlesFormSelectionListSearchComponent, typeof i48.KlesFormCopyComponent, typeof i49.KlesDynamicFieldDirective, typeof i50.KlesComponentDirective, typeof i51.MatErrorMessageDirective, typeof i52.MatErrorFormDirective, typeof i53.KlesTransformPipe, typeof i54.ArrayFormatPipe, typeof i55.ColorPickerComponent, typeof i55.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.KlesFormRadioComponent, typeof i21.KlesFormCheckboxComponent, typeof i22.KlesIndeterminateCheckboxComponent, typeof i23.KlesFormCheckboxIndeterminateComponent, typeof i24.KlesFormListFieldComponent, typeof i25.KlesFormColorComponent, typeof i26.KlesFormTextareaComponent, typeof i27.KlesFormTextComponent, typeof i28.KlesFormChipComponent, typeof i29.KlesFormGroupComponent, typeof i30.KlesFormIconComponent, typeof i31.KlesFormSelectSearchComponent, typeof i32.KlesFormLineBreakComponent, typeof i33.KlesFormLinkComponent, typeof i34.KlesFormSlideToggleComponent, typeof i35.KlesFormSelectionListComponent, typeof i36.KlesFormButtonToogleGroupComponent, typeof i37.KlesFormArrayComponent, typeof i38.KlesFormRangeComponent, typeof i39.KlesFormClearComponent, typeof i40.KlesFormSelectLazySearchComponent, typeof i41.KlesFormFabComponent, typeof i42.KlesFabComponent, typeof i43.KlesMiniFabComponent, typeof i44.KlesFormMiniFabComponent, typeof i45.KlesIconButtonComponent, typeof i46.KlesFormIconButtonComponent, typeof i47.KlesFormSelectionListSearchComponent, typeof i48.KlesFormCopyComponent, typeof i53.KlesTransformPipe, typeof i54.ArrayFormatPipe, typeof i49.KlesDynamicFieldDirective, typeof i50.KlesComponentDirective, typeof i51.MatErrorMessageDirective, typeof i52.MatErrorFormDirective]>;
|
|
78
74
|
static ɵinj: i0.ɵɵInjectorDeclaration<KlesMaterialDynamicformsModule>;
|
package/lib/token.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { IKlesFieldConfig } from './interfaces/field.config.interface';
|
|
4
|
+
import { GroupUiState } from './ui/ui-state/group-ui-state';
|
|
5
|
+
export declare const FIELD_NAME: InjectionToken<string>;
|
|
6
|
+
export declare const GROUP: InjectionToken<FormGroup<any>>;
|
|
7
|
+
export declare const SIBLING_FIELDS: InjectionToken<IKlesFieldConfig[]>;
|
|
8
|
+
export declare const GROUP_UI: InjectionToken<GroupUiState<any>[]>;
|
|
9
|
+
export declare const FIELD: InjectionToken<IKlesFieldConfig>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractUiState } from './ui-state.abstract';
|
|
2
|
+
export declare class ArrayUiState extends AbstractUiState<any, any> {
|
|
3
|
+
states: AbstractUiState[];
|
|
4
|
+
setValue(value: any): void;
|
|
5
|
+
patchValue(value: any): void;
|
|
6
|
+
at(index: number): AbstractUiState;
|
|
7
|
+
_find(name: string | number): AbstractUiState | null;
|
|
8
|
+
push(control: AbstractUiState | Array<AbstractUiState>): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IKlesFieldUi } from "../../interfaces/field.config.interface";
|
|
2
|
+
import { AbstractUiState } from "./ui-state.abstract";
|
|
3
|
+
export declare class ControlUiState<TValue extends IKlesFieldUi> extends AbstractUiState<TValue> {
|
|
4
|
+
constructor(value?: TValue);
|
|
5
|
+
setValue(value: TValue): void;
|
|
6
|
+
patchValue(value: TValue): void;
|
|
7
|
+
}
|