@sumaris-net/ngx-components 2.2.1-rc13 → 2.2.1-rc14
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 +14 -10
- package/esm2020/src/app/social/user-event/user-event.service.mjs +3 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +10 -12
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +14 -10
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +3 -4
package/package.json
CHANGED
|
@@ -239,8 +239,8 @@ export declare class FormArrayHelper<T = Entity<any>, C extends AbstractControl
|
|
|
239
239
|
forEach(ite: (control: C) => void): void;
|
|
240
240
|
protected setAllowEmptyArray(value: boolean): void;
|
|
241
241
|
}
|
|
242
|
-
export interface AppFormArrayOptions extends AbstractControlOptions {
|
|
243
|
-
allowEmptyArray
|
|
242
|
+
export declare interface AppFormArrayOptions extends AbstractControlOptions {
|
|
243
|
+
allowEmptyArray?: boolean;
|
|
244
244
|
allowReuseControls?: boolean;
|
|
245
245
|
}
|
|
246
246
|
export declare class AppFormArray<T extends Entity<T>, C extends AbstractControl> extends UntypedFormArray {
|
|
@@ -248,10 +248,9 @@ export declare class AppFormArray<T extends Entity<T>, C extends AbstractControl
|
|
|
248
248
|
private equals;
|
|
249
249
|
private isEmpty;
|
|
250
250
|
private options?;
|
|
251
|
-
private _allowEmptyArray;
|
|
252
251
|
get allowEmptyArray(): boolean;
|
|
253
252
|
set allowEmptyArray(value: boolean);
|
|
254
|
-
constructor(createControl: (value?: T) => C, equals: (v1: T, v2: T) => boolean, isEmpty: (value: T) => boolean, options?: AppFormArrayOptions | null);
|
|
253
|
+
constructor(createControl: (value?: T) => C, equals: (v1: T, v2: T) => boolean, isEmpty: (value: T) => boolean, options?: AppFormArrayOptions | undefined | null);
|
|
255
254
|
/**
|
|
256
255
|
* WIll rebuild the array, using the given values
|
|
257
256
|
* @param values
|