ui-core-abv 0.1.0 → 0.1.1
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/fesm2022/ui-core-abv.mjs +14 -15
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/dynamic-form/form/dynamic-form.component.d.ts +2 -1
- package/lib/components/dynamic-form/form-wrapper/form-wrapper.component.d.ts +2 -3
- package/lib/components/dynamic-form/form.models.d.ts +3 -1
- package/package.json +1 -1
|
@@ -4,10 +4,11 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class UicDynamicFormComponent {
|
|
5
5
|
fields: FormField[];
|
|
6
6
|
form: FormGroup;
|
|
7
|
+
disabled: boolean;
|
|
7
8
|
flag: boolean;
|
|
8
9
|
cols: number;
|
|
9
10
|
getErrorMessages(field: FormField): string[];
|
|
10
11
|
private readonly errorMessages;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicDynamicFormComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicDynamicFormComponent, "ui-dynamic-form", never, { "fields": { "alias": "fields"; "required": false; }; "form": { "alias": "form"; "required": true; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicDynamicFormComponent, "ui-dynamic-form", never, { "fields": { "alias": "fields"; "required": false; }; "form": { "alias": "form"; "required": true; }; "disabled": { "alias": "disabled"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
14
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges,
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormBlock, FormField, FormResult, FormSchema } from '../form.models';
|
|
3
3
|
import { FormArray, FormGroup } from '@angular/forms';
|
|
4
4
|
import { AppSelectOption } from '../../inputs/select/select.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class UicFormWrapperComponent implements
|
|
6
|
+
export declare class UicFormWrapperComponent implements OnChanges {
|
|
7
7
|
schema: FormSchema;
|
|
8
8
|
externalData: Record<string, AppSelectOption[]>;
|
|
9
9
|
loading: boolean;
|
|
@@ -13,7 +13,6 @@ export declare class UicFormWrapperComponent implements OnInit, OnChanges {
|
|
|
13
13
|
private readonly fb;
|
|
14
14
|
form: FormGroup;
|
|
15
15
|
currentStep: number;
|
|
16
|
-
ngOnInit(): void;
|
|
17
16
|
ngOnChanges(changes: SimpleChanges): void;
|
|
18
17
|
private handleSchemaChange;
|
|
19
18
|
handleSubmit(): void;
|
|
@@ -5,12 +5,13 @@ export interface FormSchema {
|
|
|
5
5
|
blocks?: FormBlock[];
|
|
6
6
|
}
|
|
7
7
|
export interface FormStep {
|
|
8
|
-
title
|
|
8
|
+
title?: string;
|
|
9
9
|
description?: string;
|
|
10
10
|
blocks: FormBlock[];
|
|
11
11
|
}
|
|
12
12
|
export interface FormBlock {
|
|
13
13
|
title?: string;
|
|
14
|
+
disabled?: boolean;
|
|
14
15
|
fields: FormField[];
|
|
15
16
|
}
|
|
16
17
|
export interface FormField {
|
|
@@ -18,6 +19,7 @@ export interface FormField {
|
|
|
18
19
|
name: string;
|
|
19
20
|
label: string;
|
|
20
21
|
icon?: string;
|
|
22
|
+
disabled?: boolean;
|
|
21
23
|
tooltip?: string;
|
|
22
24
|
tip?: string;
|
|
23
25
|
colSpan?: number;
|