@sumaris-net/ngx-components 18.21.9 → 18.21.11

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.9",
4
+ "version": "18.21.11",
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, 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,6 +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 setControlRequired: typeof setControlRequired;
241
242
  static selectInputContentFromEvent: typeof selectInputContentFromEvent;
242
243
  static selectInputContent: typeof selectInputContent;
243
244
  /**
@@ -72,6 +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 setControlRequired(control: AbstractControl, required: boolean): void;
75
76
  /**
76
77
  * Sets form errors on an AbstractControl, including nested controls within form groups or arrays.
77
78
  *
@@ -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.9",
5
+ "version": "18.21.11",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{