@sumaris-net/ngx-components 2.2.1-rc9 → 2.2.2
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 +30 -14
- package/esm2020/src/app/core/table/actions-column.component.mjs +3 -3
- package/esm2020/src/app/shared/forms.mjs +11 -5
- package/esm2020/src/app/social/user-event/user-event.service.mjs +6 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +39 -20
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +43 -18
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +5 -7
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { AbstractControl, AbstractControlOptions, UntypedFormArray, UntypedFormB
|
|
|
2
2
|
import { Entity } from '../services/model/entity.model';
|
|
3
3
|
import { filterNumberInput, selectInputContent } from '../../shared/inputs';
|
|
4
4
|
import { WaitForOptions } from '../../shared/observables';
|
|
5
|
-
import { clearValueInArray, copyEntity2Form, disableControls, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched,
|
|
5
|
+
import { addValueInArray, clearValueInArray, copyEntity2Form, disableControls, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, removeValueInArray, resizeArray, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
|
|
6
6
|
export declare type IAppFormGetter = () => IAppForm;
|
|
7
7
|
export declare interface OnReady {
|
|
8
8
|
ngOnReady(): any;
|
|
@@ -239,19 +239,18 @@ 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
|
|
244
|
-
|
|
242
|
+
export declare interface AppFormArrayOptions extends AbstractControlOptions {
|
|
243
|
+
allowEmptyArray?: boolean;
|
|
244
|
+
allowReuseControls?: boolean;
|
|
245
245
|
}
|
|
246
246
|
export declare class AppFormArray<T extends Entity<T>, C extends AbstractControl> extends UntypedFormArray {
|
|
247
247
|
private createControl;
|
|
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
|
|
@@ -280,7 +279,6 @@ export declare class AppFormArray<T extends Entity<T>, C extends AbstractControl
|
|
|
280
279
|
/**
|
|
281
280
|
* @param value
|
|
282
281
|
* @param options
|
|
283
|
-
* @deprecated Use push() instead
|
|
284
282
|
*/
|
|
285
283
|
add(value?: T, options?: {
|
|
286
284
|
emitEvent: boolean;
|