ui-core-abv 0.9.6 → 0.9.8
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 +85 -64
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/dynamic-form/form-wrapper/form-wrapper.component.d.ts +2 -0
- package/lib/components/user-formbuilder/block-editor/field-editor/field-editor.component.d.ts +1 -5
- package/lib/components/user-formbuilder/form-preview/form-preview.component.d.ts +3 -2
- package/lib/components/user-formbuilder/user-formbuilder.component.d.ts +0 -1
- package/lib/translate/dictionary.en.d.ts +1 -0
- package/lib/translate/dictionary.es.d.ts +1 -0
- package/package.json +1 -1
|
@@ -118,6 +118,8 @@ export declare class UicFormWrapperComponent implements OnInit, OnChanges, OnDes
|
|
|
118
118
|
updateFieldDisabled(name: string, disabled: boolean): void;
|
|
119
119
|
updateFieldLoading(name: string, loading: boolean): void;
|
|
120
120
|
submit(): FormResult;
|
|
121
|
+
/** Valores actuales del formulario, sin importar si son válidos. */
|
|
122
|
+
getCurrentValues(): uicFormValuesRecord;
|
|
121
123
|
clean(hardReset?: boolean): void;
|
|
122
124
|
addFieldControl(field: FormField, after?: string): void;
|
|
123
125
|
removeFieldControl(name: string): void;
|
package/lib/components/user-formbuilder/block-editor/field-editor/field-editor.component.d.ts
CHANGED
|
@@ -6,8 +6,6 @@ export declare class FieldEditorComponent {
|
|
|
6
6
|
private readonly translateService;
|
|
7
7
|
private readonly elementRef;
|
|
8
8
|
private currentFieldCode;
|
|
9
|
-
private nameManuallySetForCurrentField;
|
|
10
|
-
private readonly basicFormWrapper?;
|
|
11
9
|
hasOptions: import("@angular/core").Signal<boolean>;
|
|
12
10
|
hasOptionsSourceConfig: import("@angular/core").Signal<boolean>;
|
|
13
11
|
hasExternalOptionsSource: import("@angular/core").Signal<boolean>;
|
|
@@ -23,7 +21,6 @@ export declare class FieldEditorComponent {
|
|
|
23
21
|
editingRuleIndex: import("@angular/core").WritableSignal<number>;
|
|
24
22
|
isAddingNewRule: import("@angular/core").WritableSignal<boolean>;
|
|
25
23
|
fieldChange: import("@angular/core").OutputEmitterRef<FormField>;
|
|
26
|
-
nameManuallySet: import("@angular/core").OutputEmitterRef<void>;
|
|
27
24
|
localField: import("@angular/core").WritableSignal<FormField>;
|
|
28
25
|
requiredFields: import("@angular/core").Signal<FormField[]>;
|
|
29
26
|
optionsSourceFields: import("@angular/core").Signal<FormField[]>;
|
|
@@ -45,7 +42,6 @@ export declare class FieldEditorComponent {
|
|
|
45
42
|
cancelEditingRule(): void;
|
|
46
43
|
removeRule(index: number): void;
|
|
47
44
|
private clearDraftRule;
|
|
48
|
-
private normalizeLabelToName;
|
|
49
45
|
updateFieldValues(fr: uicFormValuesRecord): void;
|
|
50
46
|
updateOptions(options: AppSelectOption[]): void;
|
|
51
47
|
private getDependencyFieldLabel;
|
|
@@ -64,5 +60,5 @@ export declare class FieldEditorComponent {
|
|
|
64
60
|
private buildComputedSourceFields;
|
|
65
61
|
private buildExternalValidationFields;
|
|
66
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldEditorComponent, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldEditorComponent, "lib-field-editor", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "focusRequiredField": { "alias": "focusRequiredField"; "required": false; "isSignal": true; }; "isSubField": { "alias": "isSubField"; "required": false; "isSignal": true; }; "enableNameModify": { "alias": "enableNameModify"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "fieldChange": "fieldChange";
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldEditorComponent, "lib-field-editor", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "focusRequiredField": { "alias": "focusRequiredField"; "required": false; "isSignal": true; }; "isSubField": { "alias": "isSubField"; "required": false; "isSignal": true; }; "enableNameModify": { "alias": "enableNameModify"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "fieldChange": "fieldChange"; }, never, never, true, never>;
|
|
68
64
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedFieldResolver, ExternalValidatorResolver,
|
|
1
|
+
import { ComputedFieldResolver, ExternalValidatorResolver, FormSchema, SelectOptionsResolver } from '../../dynamic-form/form.models';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FormPreviewComponent {
|
|
4
4
|
data: {
|
|
@@ -11,13 +11,14 @@ export declare class FormPreviewComponent {
|
|
|
11
11
|
selectOptionsResolver?: SelectOptionsResolver;
|
|
12
12
|
computedFieldResolver?: ComputedFieldResolver;
|
|
13
13
|
externalValidatorResolver?: ExternalValidatorResolver;
|
|
14
|
+
private readonly formWrapper?;
|
|
14
15
|
constructor(data: {
|
|
15
16
|
schema: FormSchema;
|
|
16
17
|
selectOptionsResolver?: SelectOptionsResolver;
|
|
17
18
|
computedFieldResolver?: ComputedFieldResolver;
|
|
18
19
|
externalValidatorResolver?: ExternalValidatorResolver;
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
+
copyResponseToClipboard(): void;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormPreviewComponent, never>;
|
|
22
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormPreviewComponent, "lib-form-preview", never, {}, {}, never, never, true, never>;
|
|
23
24
|
}
|
|
@@ -172,6 +172,7 @@ export declare const DICTIONARY_EN: {
|
|
|
172
172
|
readonly preview_form: "Preview";
|
|
173
173
|
readonly submit_form: "Submit";
|
|
174
174
|
readonly preview_form_label: "This is just a preview";
|
|
175
|
+
readonly preview_copy_response: "Validate and copy response";
|
|
175
176
|
readonly select_field_to_edit: "Select a field to edit its properties";
|
|
176
177
|
readonly no_fields: "Add fields to your form";
|
|
177
178
|
readonly base: {
|
|
@@ -171,6 +171,7 @@ export declare const DICTIONARY_ES: {
|
|
|
171
171
|
readonly delete_field_dependency_blocked: "Este campo no se puede eliminar porque otro campo depende de su valor";
|
|
172
172
|
readonly preview_form: "Vista previa";
|
|
173
173
|
readonly preview_form_label: "Esta es solo una vista previa";
|
|
174
|
+
readonly preview_copy_response: "Validar y copiar respuesta";
|
|
174
175
|
readonly submit_form: "Guardar";
|
|
175
176
|
readonly select_field_to_edit: "Selecciona un campo para editar sus propiedades";
|
|
176
177
|
readonly no_fields: "Añade campos a tu formulario";
|