@3kles/kles-material-dynamicforms 19.4.4 → 19.4.7
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.
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { OnInit, ViewContainerRef, ComponentRef, OnChanges, SimpleChanges, OnDestroy, Injector } from '@angular/core';
|
|
1
|
+
import { OnInit, ViewContainerRef, ComponentRef, OnChanges, SimpleChanges, OnDestroy, Type, Injector } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { IKlesFieldConfig } from '../interfaces/field.config.interface';
|
|
4
4
|
import { GroupUiState } from '../ui/ui-state/group-ui-state';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class KlesDynamicFieldDirective implements OnInit, OnChanges, OnDestroy {
|
|
6
|
+
export declare class KlesDynamicFieldDirective<T extends IKlesFieldConfig = IKlesFieldConfig> implements OnInit, OnChanges, OnDestroy {
|
|
7
7
|
protected container: ViewContainerRef;
|
|
8
|
-
|
|
9
|
-
field:
|
|
8
|
+
protected injector: Injector;
|
|
9
|
+
field: T;
|
|
10
10
|
group: UntypedFormGroup;
|
|
11
11
|
ui: GroupUiState;
|
|
12
|
-
siblingFields:
|
|
12
|
+
siblingFields: T[];
|
|
13
13
|
componentRef: ComponentRef<any>;
|
|
14
14
|
subComponents: ComponentRef<any>[];
|
|
15
15
|
constructor(container: ViewContainerRef, injector: Injector);
|
|
@@ -18,7 +18,8 @@ export declare class KlesDynamicFieldDirective implements OnInit, OnChanges, OnD
|
|
|
18
18
|
ngOnChanges(changes: SimpleChanges): void;
|
|
19
19
|
buildComponent(): void;
|
|
20
20
|
protected createComponentRef(injector: Injector): ComponentRef<any>;
|
|
21
|
+
protected findComponent(): Type<any>;
|
|
21
22
|
private createSubComponent;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KlesDynamicFieldDirective
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KlesDynamicFieldDirective
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KlesDynamicFieldDirective<any>, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KlesDynamicFieldDirective<any>, "[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>;
|
|
24
25
|
}
|
package/lib/token.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import { GroupUiState } from './ui/ui-state/group-ui-state';
|
|
|
5
5
|
export declare const FIELD_NAME: InjectionToken<string>;
|
|
6
6
|
export declare const GROUP: InjectionToken<FormGroup<any>>;
|
|
7
7
|
export declare const SIBLING_FIELDS: InjectionToken<IKlesFieldConfig[]>;
|
|
8
|
-
export declare const GROUP_UI: InjectionToken<GroupUiState<any
|
|
8
|
+
export declare const GROUP_UI: InjectionToken<GroupUiState<any>>;
|
|
9
9
|
export declare const FIELD: InjectionToken<IKlesFieldConfig>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED