@sumaris-net/ngx-components 2.0.8 → 2.0.9
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 +17 -9
- package/fesm2015/sumaris-net.ngx-components.mjs +17 -9
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +17 -9
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +4 -2
package/package.json
CHANGED
|
@@ -235,11 +235,12 @@ export declare class FormArrayHelper<T = Entity<any>, C extends AbstractControl
|
|
|
235
235
|
forEach(ite: (control: C) => void): void;
|
|
236
236
|
protected setAllowEmptyArray(value: boolean): void;
|
|
237
237
|
}
|
|
238
|
-
export declare class
|
|
238
|
+
export declare class AppFormArray<T extends Entity<T>, C extends AbstractControl> extends UntypedFormArray {
|
|
239
239
|
static HELPER_PROPERTY: string;
|
|
240
240
|
_helper: FormArrayHelper;
|
|
241
241
|
constructor(controls: AbstractControl[], validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null);
|
|
242
|
-
|
|
242
|
+
init(createControl: (value?: T) => C, equals: (v1: T, v2: T) => boolean, isEmpty: (value: T) => boolean, options?: FormArrayHelperOptions): this;
|
|
243
|
+
setHelper(helper: FormArrayHelper<T, C>): this;
|
|
243
244
|
/**
|
|
244
245
|
* WIll rebuild the array, using the given values
|
|
245
246
|
* @param values
|
|
@@ -249,6 +250,7 @@ export declare class FormArrayWithHelper<T extends Entity<T>, C extends Abstract
|
|
|
249
250
|
onlySelf?: boolean;
|
|
250
251
|
emitEvent?: boolean;
|
|
251
252
|
}): void;
|
|
253
|
+
resize(length: number): void;
|
|
252
254
|
}
|
|
253
255
|
export declare class AppFormUtils {
|
|
254
256
|
static copyEntity2Form: typeof copyEntity2Form;
|