@sumaris-net/ngx-components 2.1.4 → 2.1.6
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/src/app/core/form/form.utils.mjs +11 -10
- package/esm2020/src/app/core/services/validator/base.validator.class.mjs +1 -1
- package/esm2020/src/app/shared/forms.mjs +4 -4
- package/fesm2015/sumaris-net.ngx-components.mjs +13 -12
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +13 -12
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +6 -2
- package/src/app/shared/forms.d.ts +3 -1
package/package.json
CHANGED
|
@@ -202,7 +202,9 @@ export declare class FormArrayHelper<T = Entity<any>, C extends AbstractControl
|
|
|
202
202
|
emitEvent: boolean;
|
|
203
203
|
}): boolean;
|
|
204
204
|
removeAt(index: number): boolean;
|
|
205
|
-
resize(length: number
|
|
205
|
+
resize(length: number, options?: {
|
|
206
|
+
emitEvent?: boolean;
|
|
207
|
+
}): boolean;
|
|
206
208
|
clearAt(index: number): boolean;
|
|
207
209
|
isLast(index: number): boolean;
|
|
208
210
|
removeAllEmpty(): void;
|
|
@@ -263,7 +265,9 @@ export declare class AppFormArray<T extends Entity<T>, C extends AbstractControl
|
|
|
263
265
|
onlySelf?: boolean;
|
|
264
266
|
emitEvent?: boolean;
|
|
265
267
|
}): void;
|
|
266
|
-
resize(length: number
|
|
268
|
+
resize(length: number, options?: {
|
|
269
|
+
emitEvent?: boolean;
|
|
270
|
+
}): void;
|
|
267
271
|
disable(opts?: {
|
|
268
272
|
onlySelf?: boolean;
|
|
269
273
|
emitEvent?: boolean;
|
|
@@ -48,7 +48,9 @@ export declare function addValueInArray(arrayControl: UntypedFormArray, createCo
|
|
|
48
48
|
export declare function initArrayControlsFromValues(formArray: UntypedFormArray, createControl: (value?: any) => AbstractControl, defaultValues: any[], options?: {
|
|
49
49
|
emitEvent?: boolean;
|
|
50
50
|
}): boolean;
|
|
51
|
-
export declare function resizeArray(arrayControl: UntypedFormArray, createControl: () => AbstractControl, length: number
|
|
51
|
+
export declare function resizeArray(arrayControl: UntypedFormArray, createControl: () => AbstractControl, length: number, options?: {
|
|
52
|
+
emitEvent?: boolean;
|
|
53
|
+
}): boolean;
|
|
52
54
|
export declare function removeValueInArray(arrayControl: UntypedFormArray, isEmpty: (value: any) => boolean, index: number): boolean;
|
|
53
55
|
export declare function clearValueInArray(arrayControl: UntypedFormArray, isEmpty: (value: any) => boolean, index: number): boolean;
|
|
54
56
|
export declare function markAllAsTouched(control: AbstractControl, opts?: {
|