@sumaris-net/ngx-components 18.3.15 → 18.3.17
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 +1 -1
- package/esm2022/src/app/core/form/form.utils.mjs +4 -2
- package/esm2022/src/app/shared/forms.mjs +8 -1
- package/esm2022/src/app/shared/material/chips/material.chips.mjs +13 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +22 -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 +3 -1
- package/src/app/shared/forms.d.ts +5 -0
- package/src/app/shared/material/chips/material.chips.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, 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;
|
|
@@ -125,6 +125,7 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
125
125
|
_initAutocompleteInfiniteScroll(threshold?: string): void;
|
|
126
126
|
get isOpen(): boolean;
|
|
127
127
|
closePanel(): void;
|
|
128
|
+
protected toggleShowPanel(event: Event): void;
|
|
128
129
|
private suggest;
|
|
129
130
|
private fetchMore;
|
|
130
131
|
private updateImplicitValue;
|
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.3.
|
|
5
|
+
"version": "18.3.17",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|