@sumaris-net/ngx-components 18.3.14 → 18.3.16

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.3.14",
4
+ "version": "18.3.16",
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, disableControl, disableControls, enableControl, enableControls, filterFormErrors, filterFormErrorsByPath, filterFormErrorsByPrefix, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, removeValueInArray, resizeArray, setControlEnabled, setControlsEnabled, 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, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
5
5
  export declare type IAppFormGetter = () => IAppForm;
6
6
  export declare interface OnReady {
7
7
  ngOnReady(): any;
@@ -213,6 +213,8 @@ export declare class AppFormUtils {
213
213
  static enableControl: typeof enableControl;
214
214
  static disableControl: typeof disableControl;
215
215
  static disableControls: typeof disableControls;
216
+ static disableAndClearControl: typeof disableAndClearControl;
217
+ static disableAndClearControls: typeof disableAndClearControls;
216
218
  static setControlEnabled: typeof setControlEnabled;
217
219
  static setControlsEnabled: typeof setControlsEnabled;
218
220
  static selectInputContentFromEvent: typeof selectInputContentFromEvent;
@@ -38,6 +38,11 @@ export declare function disableControls(form: UntypedFormGroup, paths: string[],
38
38
  emitEvent?: boolean;
39
39
  required?: boolean;
40
40
  }): void;
41
+ export declare function disableAndClearControls(form: UntypedFormGroup, paths: string[], opts?: {
42
+ onlySelf?: boolean;
43
+ emitEvent?: boolean;
44
+ required?: boolean;
45
+ }): void;
41
46
  export declare function enableControls(form: UntypedFormGroup, paths: string[], opts?: {
42
47
  onlySelf?: boolean;
43
48
  emitEvent?: boolean;
@@ -57,7 +62,11 @@ export declare function disableControl(control: AbstractControl, opts?: {
57
62
  onlySelf?: boolean;
58
63
  emitEvent?: boolean;
59
64
  required?: boolean;
60
- clearValue?: boolean;
65
+ }): void;
66
+ export declare function disableAndClearControl(control: AbstractControl, opts?: {
67
+ onlySelf?: boolean;
68
+ emitEvent?: boolean;
69
+ required?: boolean;
61
70
  }): void;
62
71
  export declare function setControlEnabled(control: AbstractControl, enabled: boolean, opts?: {
63
72
  onlySelf?: boolean;
@@ -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.3.14",
5
+ "version": "18.3.16",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{