@sumaris-net/ngx-components 1.23.38 → 1.23.41
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/bundles/sumaris-net.ngx-components.umd.js +32 -10
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +4 -0
- package/esm2015/src/app/core/form/editor.class.js +4 -1
- package/esm2015/src/app/core/form/form.utils.js +7 -11
- package/esm2015/src/app/shared/forms.js +20 -1
- package/fesm2015/sumaris-net.ngx-components.js +28 -10
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/editor.class.d.ts +1 -0
- package/src/app/core/form/form.utils.d.ts +4 -5
- package/src/app/shared/forms.d.ts +7 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -101,6 +101,7 @@ export declare abstract class AppEditor<T = any, ID = number, O = any> implement
|
|
|
101
101
|
get invalid(): boolean;
|
|
102
102
|
get pending(): boolean;
|
|
103
103
|
get loading(): boolean;
|
|
104
|
+
get loaded(): boolean;
|
|
104
105
|
get touched(): boolean;
|
|
105
106
|
get untouched(): boolean;
|
|
106
107
|
get enabled(): boolean;
|
|
@@ -217,13 +217,12 @@ export declare class FormArrayHelper<T = Entity<any>, C extends AbstractControl
|
|
|
217
217
|
size(): number;
|
|
218
218
|
at(index: number): C;
|
|
219
219
|
/**
|
|
220
|
-
*
|
|
221
|
-
* @param
|
|
220
|
+
* Patch a FormArray, using default values
|
|
221
|
+
* @param values default values to apply.
|
|
222
222
|
* @param opts
|
|
223
|
+
* @return true if form arry has been changed
|
|
223
224
|
*/
|
|
224
|
-
patchValue(values: T[]
|
|
225
|
-
emitEvent?: boolean;
|
|
226
|
-
}): void;
|
|
225
|
+
patchValue(values: T[]): boolean;
|
|
227
226
|
disable(opts?: {
|
|
228
227
|
onlySelf?: boolean;
|
|
229
228
|
emitEvent?: boolean;
|
|
@@ -39,6 +39,13 @@ export declare function disableControls(form: FormGroup, paths: string[], opts?:
|
|
|
39
39
|
export declare function pushValueInArray(arrayControl: FormArray, createControl: (value?: any) => AbstractControl, equals: (v1: any, v2: any) => boolean, isEmpty: (value: any) => boolean, value: any, options?: {
|
|
40
40
|
emitEvent: boolean;
|
|
41
41
|
}): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Patch an array using given default values. Each default value will be pass to the 'createControl()' function
|
|
44
|
+
* @param arrayControl
|
|
45
|
+
* @param createControl
|
|
46
|
+
* @param values
|
|
47
|
+
*/
|
|
48
|
+
export declare function patchValueInArray(arrayControl: FormArray, createControl: (value?: any) => AbstractControl, defaultValues: any[]): boolean;
|
|
42
49
|
export declare function resizeArray(arrayControl: FormArray, createControl: () => AbstractControl, length: number): boolean;
|
|
43
50
|
export declare function removeValueInArray(arrayControl: FormArray, isEmpty: (value: any) => boolean, index: number): boolean;
|
|
44
51
|
export declare function clearValueInArray(arrayControl: FormArray, isEmpty: (value: any) => boolean, index: number): boolean;
|