@sumaris-net/ngx-components 1.12.5 → 1.12.9

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": "1.12.5",
4
+ "version": "1.12.9",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -264,15 +264,18 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
264
264
  * @param event
265
265
  * @param row
266
266
  * @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
267
+ * Use skipIfLoading=false to force deletion even if table is busy
267
268
  */
268
269
  deleteRow(event: UIEvent | null, row: TableElement<T>, opts?: {
269
270
  interactive?: boolean;
271
+ skipIfLoading?: boolean;
270
272
  }): Promise<boolean>;
271
273
  /**
272
274
  *
273
275
  * @param event
274
276
  * @param rows
275
277
  * @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
278
+ * Use skipIfLoading=false to force deletion even if table is busy
276
279
  */
277
280
  deleteRows(event: UIEvent | null, rows: TableElement<T>[], opts?: {
278
281
  interactive?: boolean;
@@ -88,7 +88,7 @@ export declare function removeAll<T>(array: T[], predicate: (pmfm: T) => boolean
88
88
  export declare function remove<T>(array: T[], predicate: (pmfm: T) => boolean): T;
89
89
  export declare function capitalizeFirstLetter(value: string): string;
90
90
  export declare function uncapitalizeFirstLetter(value: string): string;
91
- export declare function splitByProperty<T, M extends KeyValueType<T> = KeyValueType<T>>(array: T[] | readonly T[], propertyName: string): M;
91
+ export declare function splitByProperty<T, M extends KeyValueType<T> = KeyValueType<T>>(array: T[] | readonly T[], propertyName: keyof T | string): M;
92
92
  export declare function splitById<T, M extends KeyValueType<T> = KeyValueType<T>>(array: T[] | readonly T[]): M;
93
93
  /**
94
94
  * Determines if two objects or two values are equivalent.
@@ -1,5 +1,5 @@
1
1
  import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
2
+ import { AbstractControl, FormGroup } from '@angular/forms';
3
3
  import { FormErrorTranslator, FormErrorTranslatorOptions } from '../validator/form-error-adapter.class';
4
4
  export declare class FormErrorTranslatePipe implements PipeTransform, OnDestroy {
5
5
  private adapter;
@@ -17,3 +17,6 @@ export declare class FormErrorTranslatePipe implements PipeTransform, OnDestroy
17
17
  */
18
18
  private _dispose;
19
19
  }
20
+ export declare class FormControlGetPipe implements PipeTransform {
21
+ transform(form: AbstractControl, path: Array<string | number> | string): any;
22
+ }