@klippa/ngx-enhancy-forms 11.5.2 → 11.7.0
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/esm2020/lib/elements/button/button.component.mjs +1 -1
- package/esm2020/lib/form/form-submit-button/form-submit-button.component.mjs +5 -5
- package/esm2020/lib/form/form.component.mjs +41 -4
- package/esm2020/lib/util/objects.mjs +38 -0
- package/fesm2015/klippa-ngx-enhancy-forms.mjs +80 -5
- package/fesm2015/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs +79 -5
- package/fesm2020/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/lib/form/form-submit-button/form-submit-button.component.d.ts +3 -3
- package/lib/form/form.component.d.ts +2 -0
- package/lib/util/objects.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FormComponent } from
|
|
1
|
+
import { FormComponent } from '../form.component';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FormSubmitButtonComponent {
|
|
4
4
|
private parentForm;
|
|
5
5
|
isLoading: boolean;
|
|
6
6
|
fullWidth: boolean;
|
|
7
|
-
variant: 'greenFilled' | 'redFilled';
|
|
8
|
-
submitCallback: (
|
|
7
|
+
variant: 'greenFilled' | 'redFilled' | 'greenOutlined';
|
|
8
|
+
submitCallback: (renderedAndEnabledValues: object, renderedButDisabledValues: object) => Promise<any>;
|
|
9
9
|
get _(): boolean;
|
|
10
10
|
constructor(parentForm: FormComponent);
|
|
11
11
|
submitForm(): void;
|
|
@@ -31,6 +31,8 @@ export declare class FormComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
31
31
|
private addFormControl;
|
|
32
32
|
private disableInactiveFormControl;
|
|
33
33
|
trySubmit(): Promise<any>;
|
|
34
|
+
private getRenderedFieldValuesFormGroup;
|
|
35
|
+
private getRenderedFieldValuesFormArray;
|
|
34
36
|
private setDisabledStatesForAllControls;
|
|
35
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
36
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "klp-form", never, { "readOnly": "readOnly"; "showErrorMessages": "showErrorMessages"; "errorMessageLocation": "errorMessageLocation"; "formGroup": "formGroup"; "patchValueInterceptor": "patchValueInterceptor"; }, {}, never, ["*"], false>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function deepMerge<A extends object | Array<any>, B extends object | Array<any>>(objA: A, objB: B): A | B;
|