@tft/crispr-forms 13.0.17 → 13.0.20
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/esm2020/lib/field-component-map.const.mjs +2 -2
- package/esm2020/lib/field.directive.mjs +4 -3
- package/esm2020/lib/form-group-list/form-group-list.component.mjs +16 -3
- package/esm2020/lib/material/image-upload-field/image-upload-field.component.mjs +21 -6
- package/esm2020/lib/sub-group/sub-group.component.mjs +4 -4
- package/fesm2015/tft-crispr-forms.mjs +43 -13
- package/fesm2015/tft-crispr-forms.mjs.map +1 -1
- package/fesm2020/tft-crispr-forms.mjs +43 -13
- package/fesm2020/tft-crispr-forms.mjs.map +1 -1
- package/lib/field.directive.d.ts +1 -1
- package/lib/form-group-list/form-group-list.component.d.ts +7 -0
- package/lib/material/image-upload-field/image-upload-field.component.d.ts +1 -3
- package/package.json +1 -1
- package/tft-crispr-forms-13.0.20.tgz +0 -0
- package/tft-crispr-forms-13.0.17.tgz +0 -0
package/lib/field.directive.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ViewContainerRef, Renderer2, OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import
|
|
3
|
+
import { AnyFieldConfig, ControlValue } from './models';
|
|
4
4
|
import { CrisprFieldComponent } from './field-component-map.const';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "@angular/common";
|
|
@@ -20,9 +20,16 @@ export declare class FormGroupListComponent extends FormGroupListMixin implement
|
|
|
20
20
|
defaultConfig: Partial<FormGroupListConfig>;
|
|
21
21
|
group: FormGroup;
|
|
22
22
|
control: FormArray;
|
|
23
|
+
/**
|
|
24
|
+
* By setting this to true when adding/removing items from array,
|
|
25
|
+
* we can block original values from overwriting form values
|
|
26
|
+
* */
|
|
27
|
+
blockValue: boolean;
|
|
23
28
|
constructor(cdr: ChangeDetectorRef);
|
|
24
29
|
ngOnInit(): void;
|
|
25
30
|
setControlValue(values: any[]): void;
|
|
31
|
+
clickDelete(index: number): void;
|
|
32
|
+
clickAdd(): void;
|
|
26
33
|
addGroup(value?: any): void;
|
|
27
34
|
deleteGroup(index: number): void;
|
|
28
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupListComponent, never>;
|
|
@@ -33,9 +33,6 @@ export declare class ImageUploadFieldComponent extends ImageUploadFieldMixin imp
|
|
|
33
33
|
private cdr;
|
|
34
34
|
onChange: () => void;
|
|
35
35
|
defaultConfig: Partial<ImageUploadFieldConfig>;
|
|
36
|
-
/**
|
|
37
|
-
* The url mapped from initial input value, consumers can us mapInputValueToUrl in config to transform their input value into a src url for the image element
|
|
38
|
-
*/
|
|
39
36
|
private inputImageFileSubject;
|
|
40
37
|
inputImageFile$: Observable<File>;
|
|
41
38
|
/**
|
|
@@ -67,4 +64,5 @@ export declare class ImageUploadFieldModule {
|
|
|
67
64
|
}
|
|
68
65
|
export declare function maxFileSizeValidator(maxFileSize: number): ValidatorFn;
|
|
69
66
|
export declare function allowedFileExtValidator(allowedFileExtensions: string[], onlyAllowFiles?: boolean): ValidatorFn;
|
|
67
|
+
export declare function allowedFileType(matchExp: string | RegExp): ValidatorFn;
|
|
70
68
|
export {};
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|