@sumaris-net/ngx-components 18.21.10 → 18.21.12

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": "18.21.10",
4
+ "version": "18.21.12",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,7 +1,7 @@
1
1
  import { AbstractControl } from '@angular/forms';
2
2
  import { filterNumberInput, selectInputContent, selectInputContentFromEvent } from '../../shared/inputs';
3
3
  import { WaitForOptions } from '../../shared/observables';
4
- import { addValueInArray, clearValueInArray, copyEntity2Form, disableAndClearControl, disableAndClearControls, disableControl, disableControls, enableControl, enableControls, filterFormErrors, filterFormErrorsByPath, filterFormErrorsByPrefix, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, removeValueInArray, resizeArray, setControlEnabled, setControlsEnabled, setControlsRequired, setFormErrors, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
4
+ import { addValueInArray, clearValueInArray, copyEntity2Form, disableAndClearControl, disableAndClearControls, disableControl, disableControls, enableControl, enableControls, filterFormErrors, filterFormErrorsByPath, filterFormErrorsByPrefix, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, removeValueInArray, resizeArray, setControlEnabled, setControlsEnabled, setControlRequired, setFormErrors, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
5
5
  export type IAppFormGetter = () => IAppForm;
6
6
  export declare interface OnReady {
7
7
  ngOnReady(): any;
@@ -238,7 +238,7 @@ export declare class AppFormUtils {
238
238
  static disableAndClearControls: typeof disableAndClearControls;
239
239
  static setControlEnabled: typeof setControlEnabled;
240
240
  static setControlsEnabled: typeof setControlsEnabled;
241
- static setControlsRequired: typeof setControlsRequired;
241
+ static setControlRequired: typeof setControlRequired;
242
242
  static selectInputContentFromEvent: typeof selectInputContentFromEvent;
243
243
  static selectInputContent: typeof selectInputContent;
244
244
  /**
@@ -72,7 +72,7 @@ export declare function setControlsEnabled(form: UntypedFormGroup, enabled: bool
72
72
  emitEvent?: boolean;
73
73
  required?: boolean;
74
74
  }): void;
75
- export declare function setControlsRequired(control: AbstractControl, required: boolean): void;
75
+ export declare function setControlRequired(control: AbstractControl, required: boolean): void;
76
76
  /**
77
77
  * Sets form errors on an AbstractControl, including nested controls within form groups or arrays.
78
78
  *
@@ -1,6 +1,5 @@
1
1
  import { ThemePalette } from '@angular/material/core';
2
2
  import { PredefinedColors } from '@ionic/core';
3
- import { Predicate } from '@angular/core';
4
3
  import { FloatLabelType } from '@angular/material/form-field';
5
4
  export type AppFloatLabelType = FloatLabelType | 'never';
6
5
  export type KeyType = string | number;
@@ -32,7 +31,7 @@ export declare interface IconRef {
32
31
  matSvgIcon?: string;
33
32
  color?: AppColors;
34
33
  }
35
- export type FilterFn<T> = Predicate<T>;
34
+ export type FilterFn<T> = (value: T, index?: number) => boolean;
36
35
  export type FilterFnFactory<T, F> = (filter: F) => FilterFn<T>;
37
36
  export type SimpleFunction<P, R> = (value: P) => R;
38
37
  export type BiFunction<P1, P2, R> = (v1: P1, v2: P2) => R;
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "18.21.10",
5
+ "version": "18.21.12",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{