@sumaris-net/ngx-components 2.9.8 → 2.9.10

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": "2.9.8",
4
+ "version": "2.9.10",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -2,8 +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 { addValueInArray, clearValueInArray, copyEntity2Form, disableControls, FormErrors, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, removeValueInArray, resizeArray, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
6
- import { Predicate } from '@angular/core';
5
+ import { addValueInArray, clearValueInArray, copyEntity2Form, disableControls, filterFormErrors, filterFormErrorsByPath, filterFormErrorsByPrefix, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, removeValueInArray, resizeArray, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
7
6
  export declare type IAppFormGetter = () => IAppForm;
8
7
  export declare interface OnReady {
9
8
  ngOnReady(): any;
@@ -358,8 +357,9 @@ export declare class AppFormUtils {
358
357
  static isControlHasInput: typeof isControlHasInput;
359
358
  static setCalculatedValue: typeof setCalculatedValue;
360
359
  static resetCalculatedValue: typeof resetCalculatedValue;
361
- static filterErrorsByPrefix: typeof filterErrorsByPrefix;
362
- static filterErrorsByPath: typeof filterErrorsByPath;
360
+ static filterErrorsByPrefix: typeof filterFormErrorsByPrefix;
361
+ static filterErrorsByPath: typeof filterFormErrorsByPath;
362
+ static filterErrors: typeof filterFormErrors;
363
363
  }
364
364
  export declare function isControlHasInput(controls: {
365
365
  [key: string]: AbstractControl;
@@ -370,6 +370,3 @@ export declare function setCalculatedValue(controls: {
370
370
  export declare function resetCalculatedValue(controls: {
371
371
  [key: string]: AbstractControl;
372
372
  }, controlName: string): void;
373
- export declare function filterErrorsByPrefix(errors: FormErrors, ...prefixes: string[]): FormErrors;
374
- export declare function filterErrorsByPath(errors: FormErrors, filter: Predicate<string>): FormErrors;
375
- export declare function filterErrors(errors: FormErrors, filter: Predicate<[string, any]>): FormErrors;
@@ -1,5 +1,6 @@
1
1
  import { AbstractControl, UntypedFormArray, UntypedFormGroup, ValidationErrors } from '@angular/forms';
2
2
  import { WaitForOptions } from './observables';
3
+ import { Predicate } from '@angular/core';
3
4
  export interface FormErrors {
4
5
  [key: string]: ValidationErrors;
5
6
  }
@@ -91,3 +92,6 @@ export declare function waitWhilePending<T extends {
91
92
  export declare function waitIdle<T extends {
92
93
  loading: boolean;
93
94
  }>(form: T, opts?: WaitForOptions): Promise<void>;
95
+ export declare function filterFormErrorsByPrefix(errors: FormErrors, ...prefixes: string[]): FormErrors;
96
+ export declare function filterFormErrorsByPath(errors: FormErrors, filter: Predicate<string>): FormErrors;
97
+ export declare function filterFormErrors(errors: FormErrors, filter: Predicate<[string, any]>): FormErrors;
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "2.9.8",
5
+ "version": "2.9.10",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{