@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/esm2020/src/app/core/form/form.utils.mjs +1 -1
- package/esm2020/src/app/shared/forms.mjs +37 -23
- package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +2 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +37 -25
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +37 -25
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +1 -1
- package/src/app/shared/forms.d.ts +2 -1
- package/src/app/shared/material/datetime/material.dateshort.d.ts +1 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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
|
|
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';
|