@sumaris-net/ngx-components 1.0.4 → 1.0.8
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 +24 -16
- 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 +1 -0
- package/esm2015/src/app/core/form/form.utils.js +1 -1
- package/esm2015/src/app/core/graphql/graphql.service.js +5 -2
- package/esm2015/src/app/core/services/account.service.js +16 -16
- package/esm2015/src/app/core/services/local-settings.service.js +6 -3
- package/fesm2015/sumaris-net.ngx-components.js +23 -17
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +4 -4
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -292,7 +292,7 @@ export interface FormArrayHelperOptions {
|
|
|
292
292
|
allowEmptyArray: boolean;
|
|
293
293
|
validators?: ValidatorFn[];
|
|
294
294
|
}
|
|
295
|
-
export declare class FormArrayHelper<T = Entity<any
|
|
295
|
+
export declare class FormArrayHelper<T = Entity<any>, C extends AbstractControl = AbstractControl> {
|
|
296
296
|
private readonly _formArray;
|
|
297
297
|
private createControl;
|
|
298
298
|
private equals;
|
|
@@ -303,7 +303,7 @@ export declare class FormArrayHelper<T = Entity<any>> {
|
|
|
303
303
|
get allowEmptyArray(): boolean;
|
|
304
304
|
set allowEmptyArray(value: boolean);
|
|
305
305
|
get formArray(): FormArray;
|
|
306
|
-
constructor(_formArray: FormArray, createControl: (value?: T) =>
|
|
306
|
+
constructor(_formArray: FormArray, createControl: (value?: T) => C, equals: (v1: T, v2: T) => boolean, isEmpty: (value: T) => boolean, options?: FormArrayHelperOptions);
|
|
307
307
|
add(value?: T, options?: {
|
|
308
308
|
emitEvent: boolean;
|
|
309
309
|
}): boolean;
|
|
@@ -313,7 +313,7 @@ export declare class FormArrayHelper<T = Entity<any>> {
|
|
|
313
313
|
isLast(index: number): boolean;
|
|
314
314
|
removeAllEmpty(): void;
|
|
315
315
|
size(): number;
|
|
316
|
-
at(index: number):
|
|
316
|
+
at(index: number): C;
|
|
317
317
|
disable(opts?: {
|
|
318
318
|
onlySelf?: boolean;
|
|
319
319
|
emitEvent?: boolean;
|
|
@@ -322,6 +322,6 @@ export declare class FormArrayHelper<T = Entity<any>> {
|
|
|
322
322
|
onlySelf?: boolean;
|
|
323
323
|
emitEvent?: boolean;
|
|
324
324
|
}): void;
|
|
325
|
-
forEach(ite: (control:
|
|
325
|
+
forEach(ite: (control: C) => void): void;
|
|
326
326
|
protected setAllowEmptyArray(value: boolean): void;
|
|
327
327
|
}
|