@sumaris-net/ngx-components 2.4.115 → 2.4.116

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.4.115",
4
+ "version": "2.4.116",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -243,7 +243,7 @@ export declare interface AppFormArrayOptions extends AbstractControlOptions {
243
243
  allowReuseControls?: boolean;
244
244
  }
245
245
  export declare class AppFormArray<T extends Entity<T>, C extends AbstractControl> extends UntypedFormArray {
246
- private createControl;
246
+ createControl: (value?: T) => C;
247
247
  private equals;
248
248
  private isEmpty;
249
249
  private options?;
@@ -43,7 +43,8 @@ export declare function addValueInArray(arrayControl: UntypedFormArray, createCo
43
43
  * Set an array using given default values. Each default value will be pass to the 'createControl()' function
44
44
  * @param arrayControl
45
45
  * @param createControl
46
- * @param values
46
+ * @param defaultValues
47
+ * @param options
47
48
  */
48
49
  export declare function initArrayControlsFromValues(arrayControl: UntypedFormArray, createControl: (value?: any) => AbstractControl, defaultValues: any[], options?: {
49
50
  emitEvent?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
- import { Moment } from 'moment/moment';
4
+ import { Moment } from 'moment';
5
5
  import { InputElement } from '../../inputs';
6
6
  import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
7
7
  import { DateFilterFn, MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker';