@sumaris-net/ngx-components 18.21.9 → 18.21.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/doc/changelog.md +3 -0
- package/esm2022/src/app/core/form/form.utils.mjs +3 -2
- package/esm2022/src/app/shared/forms.mjs +11 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +12 -1
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +2 -1
- package/src/app/shared/forms.d.ts +1 -0
- 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, 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, setControlsRequired, 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 setControlsRequired: typeof setControlsRequired;
|
|
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 setControlsRequired(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
|
*
|
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": "18.21.
|
|
5
|
+
"version": "18.21.10",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|