@3kles/kles-material-dynamicforms 21.7.5 → 21.8.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.
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnDestroy, Type, PipeTransform, ViewContainerRef, Provider, StaticProvider, Signal, OnChanges, EventEmitter, ChangeDetectorRef, SimpleChanges, ComponentRef, Injector, AfterViewInit, ElementRef, InjectionToken } from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, Type, PipeTransform, ViewContainerRef, Provider, StaticProvider, Signal, OnChanges, EventEmitter, ChangeDetectorRef, SimpleChanges, ComponentRef, Injector, ApplicationRef, AfterViewInit, ElementRef, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i2$1 from '@angular/forms';
|
|
4
4
|
import { UntypedFormGroup, ValidatorFn, AsyncValidatorFn, ɵGetProperty as _GetProperty, ɵTypedOrUntyped as _TypedOrUntyped, UntypedFormBuilder, FormGroup, ControlValueAccessor, Validators, AsyncValidator, UntypedFormArray, FormControl, UntypedFormControl, FormGroupDirective, NgForm, AbstractControl } from '@angular/forms';
|
|
5
5
|
import { Subject, Observable } from 'rxjs';
|
|
@@ -189,6 +189,7 @@ interface IKlesFieldUi {
|
|
|
189
189
|
presets?: readonly string[];
|
|
190
190
|
};
|
|
191
191
|
direction?: 'column' | 'row' | 'grid' | 'inline-grid';
|
|
192
|
+
wrap?: boolean;
|
|
192
193
|
textareaAutoSize?: {
|
|
193
194
|
minRows?: number;
|
|
194
195
|
maxRows?: number;
|
|
@@ -311,6 +312,7 @@ declare class KlesDynamicFormComponent implements OnInit, OnChanges {
|
|
|
311
312
|
submit: EventEmitter<any>;
|
|
312
313
|
_onLoaded: EventEmitter<any>;
|
|
313
314
|
direction: 'column' | 'row' | 'grid' | 'inline-grid';
|
|
315
|
+
wrap: boolean;
|
|
314
316
|
formClass: string | string[] | Set<string> | {
|
|
315
317
|
[klass: string]: any;
|
|
316
318
|
};
|
|
@@ -331,7 +333,7 @@ declare class KlesDynamicFormComponent implements OnInit, OnChanges {
|
|
|
331
333
|
private validateAllFormFields;
|
|
332
334
|
private createUi;
|
|
333
335
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesDynamicFormComponent, never>;
|
|
334
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KlesDynamicFormComponent, "app-kles-dynamic-form", ["klesDynamicForm"], { "context": { "alias": "context"; "required": false; }; "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>;
|
|
336
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KlesDynamicFormComponent, "app-kles-dynamic-form", ["klesDynamicForm"], { "context": { "alias": "context"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "validators": { "alias": "validators"; "required": false; }; "asyncValidators": { "alias": "asyncValidators"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; "formClass": { "alias": "formClass"; "required": false; }; }, { "submit": "submit"; "_onLoaded": "_onLoaded"; }, never, never, true, never>;
|
|
335
337
|
}
|
|
336
338
|
|
|
337
339
|
declare class KlesComponentDirective implements OnInit, OnChanges {
|
|
@@ -351,6 +353,7 @@ declare class KlesComponentDirective implements OnInit, OnChanges {
|
|
|
351
353
|
declare class KlesDynamicFieldDirective<T extends IKlesFieldConfig = IKlesFieldConfig> implements OnInit, OnChanges, OnDestroy {
|
|
352
354
|
protected container: ViewContainerRef;
|
|
353
355
|
protected injector: Injector;
|
|
356
|
+
private applicationRef;
|
|
354
357
|
field: T;
|
|
355
358
|
group: UntypedFormGroup;
|
|
356
359
|
ui: GroupUiState;
|
|
@@ -358,7 +361,8 @@ declare class KlesDynamicFieldDirective<T extends IKlesFieldConfig = IKlesFieldC
|
|
|
358
361
|
context: Signal<unknown | null> | null;
|
|
359
362
|
componentRef: ComponentRef<any> | undefined;
|
|
360
363
|
subComponents: ComponentRef<any>[];
|
|
361
|
-
|
|
364
|
+
private subComponentViews;
|
|
365
|
+
constructor(container: ViewContainerRef, injector: Injector, applicationRef: ApplicationRef);
|
|
362
366
|
ngOnDestroy(): void;
|
|
363
367
|
ngOnInit(): void;
|
|
364
368
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -366,6 +370,7 @@ declare class KlesDynamicFieldDirective<T extends IKlesFieldConfig = IKlesFieldC
|
|
|
366
370
|
protected createComponentRef(injector: Injector): ComponentRef<any> | undefined;
|
|
367
371
|
protected findComponent(): Type<any> | undefined;
|
|
368
372
|
private createSubComponent;
|
|
373
|
+
private destroyComponents;
|
|
369
374
|
static ɵfac: i0.ɵɵFactoryDeclaration<KlesDynamicFieldDirective<any>, never>;
|
|
370
375
|
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; }; "context": { "alias": "context"; "required": false; }; }, {}, never, never, true, never>;
|
|
371
376
|
}
|
|
@@ -769,7 +774,7 @@ declare class KlesFormChipComponent extends KlesFieldAbstract implements OnInit,
|
|
|
769
774
|
|
|
770
775
|
declare class KlesFormGroupComponent extends KlesFieldAbstract implements OnInit, OnDestroy {
|
|
771
776
|
orientationClass: 'group-container' | 'group-container-column' | 'group-container-row' | 'group-container-grid' | 'group-container-inline-grid';
|
|
772
|
-
get className():
|
|
777
|
+
get className(): string;
|
|
773
778
|
subGroup: UntypedFormGroup;
|
|
774
779
|
subUi: GroupUiState;
|
|
775
780
|
ngOnInit(): void;
|