@sumaris-net/ngx-components 2.18.0-beta10 → 2.18.0-beta12
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/esm2022/src/app/core/form/form.utils.mjs +7 -2
- package/esm2022/src/app/shared/forms.mjs +10 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +15 -3
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +6 -1
- package/src/app/shared/forms.d.ts +8 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbstractControl } from '@angular/forms';
|
|
2
2
|
import { filterNumberInput, selectInputContent } from '../../shared/inputs';
|
|
3
3
|
import { WaitForOptions } from '../../shared/observables';
|
|
4
|
-
import { addValueInArray, clearValueInArray, copyEntity2Form, disableControls, filterFormErrors, filterFormErrorsByPath, filterFormErrorsByPrefix, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, removeValueInArray, resizeArray, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
|
|
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';
|
|
5
5
|
export declare type IAppFormGetter = () => IAppForm;
|
|
6
6
|
export declare interface OnReady {
|
|
7
7
|
ngOnReady(): any;
|
|
@@ -209,7 +209,12 @@ export declare class AppFormUtils {
|
|
|
209
209
|
static logFormErrors: typeof logFormErrors;
|
|
210
210
|
static getControlFromPath: typeof getControlFromPath;
|
|
211
211
|
static filterNumberInput: typeof filterNumberInput;
|
|
212
|
+
static enableControls: typeof enableControls;
|
|
213
|
+
static enableControl: typeof enableControl;
|
|
214
|
+
static disableControl: typeof disableControl;
|
|
212
215
|
static disableControls: typeof disableControls;
|
|
216
|
+
static setControlEnabled: typeof setControlEnabled;
|
|
217
|
+
static setControlsEnabled: typeof setControlsEnabled;
|
|
213
218
|
static selectInputContent: typeof selectInputContent;
|
|
214
219
|
/**
|
|
215
220
|
* @deprecated use markAllAsTouched() instead (naming was wrong)
|
|
@@ -36,10 +36,17 @@ export declare function getControlFromPath(form: UntypedFormGroup, path: string)
|
|
|
36
36
|
export declare function disableControls(form: UntypedFormGroup, paths: string[], opts?: {
|
|
37
37
|
onlySelf?: boolean;
|
|
38
38
|
emitEvent?: boolean;
|
|
39
|
+
required?: boolean;
|
|
39
40
|
}): void;
|
|
40
41
|
export declare function enableControls(form: UntypedFormGroup, paths: string[], opts?: {
|
|
41
42
|
onlySelf?: boolean;
|
|
42
43
|
emitEvent?: boolean;
|
|
44
|
+
required?: boolean;
|
|
45
|
+
}): void;
|
|
46
|
+
export declare function setControlsEnabled(form: UntypedFormGroup, enabled: boolean, paths: string[], opts?: {
|
|
47
|
+
onlySelf?: boolean;
|
|
48
|
+
emitEvent?: boolean;
|
|
49
|
+
required?: boolean;
|
|
43
50
|
}): void;
|
|
44
51
|
export declare function enableControl(control: AbstractControl, opts?: {
|
|
45
52
|
onlySelf?: boolean;
|
|
@@ -52,9 +59,9 @@ export declare function disableControl(control: AbstractControl, opts?: {
|
|
|
52
59
|
required?: boolean;
|
|
53
60
|
}): void;
|
|
54
61
|
export declare function setControlEnabled(control: AbstractControl, enabled: boolean, opts?: {
|
|
55
|
-
required?: boolean;
|
|
56
62
|
onlySelf?: boolean;
|
|
57
63
|
emitEvent?: boolean;
|
|
64
|
+
required?: boolean;
|
|
58
65
|
}): void;
|
|
59
66
|
export declare function addValueInArray(arrayControl: UntypedFormArray, createControl: (value?: any) => AbstractControl, equals: (v1: any, v2: any) => boolean, isEmpty: (value: any) => boolean, value: any, options?: {
|
|
60
67
|
emitEvent: boolean;
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.18.0-
|
|
5
|
+
"version": "2.18.0-beta12",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|