@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "2.0.8",
4
+ "version": "2.0.9",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -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 FormArrayWithHelper<T extends Entity<T>, C extends AbstractControl> extends UntypedFormArray {
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
- addHelper(createControl: (value?: T) => C, equals: (v1: T, v2: T) => boolean, isEmpty: (value: T) => boolean, options?: FormArrayHelperOptions): FormArrayWithHelper<T, C>;
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;